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.
Gets the index in the text lines of the given text view line.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Function GetIndexOfTextLine ( _
textLine As ITextViewLine _
) As Integer
int GetIndexOfTextLine(
ITextViewLine textLine
)
int GetIndexOfTextLine(
ITextViewLine^ textLine
)
abstract GetIndexOfTextLine :
textLine:ITextViewLine -> int
function GetIndexOfTextLine(
textLine : ITextViewLine
) : int
Parameters
- textLine
Type: Microsoft.VisualStudio.Text.Formatting.ITextViewLine
The ITextViewLine for which to find the index.
Return Value
Type: System.Int32
The index of the ITextViewLine in \ view's TextViewLines list.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | textLine is nulla null reference (Nothing in Visual Basic). |
ObjectDisposedException | textLine has been disposed. |
.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.