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: Int32The 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.