TX Text Control .NET for Windows Forms

GetEnumerator Method

Method
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Returns an enumerator that can be used to iterate through the collection.

Syntax

public virtual IEnumerator GetEnumerator();

Return Value

The return value is an IEnumerator that represents the collection.

Examples

The following example obtains an enumerator and visits each xml element in the collection.

IEnumerator enumerator = xmlElementCollection.GetEnumerator();

while (enumerator.MoveNext())
{
    XmlElement xmlElement = (XmlElement)enumerator.Current;
    Console.WriteLine(xmlElement);
}