TX Text Control .NET for WPF

GetEnumerator Method

Method|Introduced in 24.0
Namespace
TXTextControl.DocumentServer.DataSources
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 through the collection.

Syntax

public IEnumerator<DataColumnInfo> GetEnumerator();

Return Value

The return value is an IEnumerator that represents the collection.

Examples

The following example obtains an enumerator and visits each data column info in the collection.

IEnumerator enumerator = dataColumnInfoCollection.GetEnumerator();

while (enumerator.MoveNext())
{
    TXTextControl.DocumentServer.DataSources.DataColumnInfo dataColumnInfo = (TXTextControl.DocumentServer.DataSources.DataColumnInfo)enumerator.Current;
    Console.WriteLine(dataColumnInfo);
}