TextElementEnumerator.ElementIndex Property (System.Globalization) (original) (raw)

Skip to main contentSkip to in-page navigation

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

TextElementEnumerator.ElementIndex Property

Definition

Gets the index of the text element that the enumerator is currently positioned over.

public:
 property int ElementIndex { int get(); };
public int ElementIndex { get; }
member this.ElementIndex : int
Public ReadOnly Property ElementIndex As Integer

Property Value

The index of the text element that the enumerator is currently positioned over.

Exceptions

The enumerator is positioned before the first text element of the string or after the last text element.

Applies to

See also

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.

Additional resources

In this article