ITokenizedStringList::GetElementInOriginal Method (Int32)

 

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

Namespace:   Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Span GetElementInOriginal(
	int index
)

Parameters

index
Type: System::Int32

The index of the element in the element list.

Return Value

Type: Microsoft.VisualStudio.Text::Span

The span of the element.

Exception Condition
ArgumentOutOfRangeException

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

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

Return to top
Show: