GetEnumerator Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Returns an enumerator that can be used to iterate through the collection.
Syntax
public TableBaseCollection.TableEnumerator GetEnumerator();Public Function GetEnumerator() As TableBaseCollection.TableEnumeratorReturn Value
The return value is an IEnumerator that represents the collection.
Examples
The following example obtains an enumerator and visits each table in the collection.
IEnumerator enumerator = tableBaseCollection.GetEnumerator();
while (enumerator.MoveNext())
{
Table table = (Table)enumerator.Current;
Console.WriteLine(table);
}Dim enumerator As IEnumerator = tableBaseCollection.GetEnumerator()
While enumerator.MoveNext()
Dim table As Table =
DirectCast(enumerator.Current, Table)
Console.WriteLine(table)
End While