TextElementEnumerator.ElementIndex 屬性

定義

取得列舉值目前所位在的文字項目的索引。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

屬性值

Int32

列舉值目前所位在的文字項目的索引。The index of the text element that the enumerator is currently positioned over.

例外狀況

列舉值位於字串的第一個文字項目之前,或最後一個文字項目之後。The enumerator is positioned before the first text element of the string or after the last text element.

適用於

另請參閱