Udostępnij za pośrednictwem


ITokenizedStringList.GetElementInOriginal(Int32) Method

Definition

Maps the index of an element to its span in the original list.

public:
 Microsoft::VisualStudio::Text::Span GetElementInOriginal(int index);
public:
 Microsoft::VisualStudio::Text::Span GetElementInOriginal(int index);
Microsoft::VisualStudio::Text::Span GetElementInOriginal(int index);
public Microsoft.VisualStudio.Text.Span GetElementInOriginal (int index);
abstract member GetElementInOriginal : int -> Microsoft.VisualStudio.Text.Span
Public Function GetElementInOriginal (index As Integer) As Span

Parameters

index
Int32

The index of the element in the element list.

Returns

The span of the element.

Exceptions

The specified index is either negative or exceeds the list's Count property.

Remarks

This method returns a zero-length span at the end of the string if index is equal to the list's Count property.

Applies to