Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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.