TX Text Control .NET for Windows Forms

GetEnumerator Method

Method|Introduced in 10.1
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 FormattingStyleCollection.FormattingStyleEnumerator GetEnumerator();

Return Value

The return value is an IEnumerator that represents the collection.

Examples

The following example retrieves enumerator from the formatting style collection.

var result = formattingStyleCollection.GetEnumerator();
Console.WriteLine($"Get Enumerator result: {result}");