Share via


ITokenizedStringList.GetElementInOriginal Method

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)

Syntax

'Declaration
Function GetElementInOriginal ( _
    index As Integer _
) As Span
Span GetElementInOriginal(
    int index
)
Span GetElementInOriginal(
    int index
)
abstract GetElementInOriginal : 
        index:int -> Span
function GetElementInOriginal(
    index : int
) : Span

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.

Exceptions

Exception Condition
ArgumentOutOfRangeException

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.

.NET Framework Security

See Also

Reference

ITokenizedStringList Interface

Microsoft.VisualStudio.Text.Differencing Namespace