TX Text Control .NET for WPF

GetEnumerator Method

Method|Introduced in 15.0
Namespace
TXTextControl.DocumentServer
Package
TXTextControl.TextControl.WPF.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Returns an enumerator that can be used to iterate over the collection's items.

Syntax

public IEnumerator GetEnumerator();

Return Value

The return value is an IEnumerator that represents the collection.

Examples

The following example obtains an enumerator and visits each field adapter in the collection.

IEnumerator enumerator = fieldAdapterCollection.GetEnumerator();

while (enumerator.MoveNext())
{
    TXTextControl.DocumentServer.Fields.FieldAdapter fieldAdapter = (TXTextControl.DocumentServer.Fields.FieldAdapter)enumerator.Current;
    Console.WriteLine(fieldAdapter);
}