ITextViewLineCollection::GetIndexOfTextLine Method (ITextViewLine^)

 

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)

int GetIndexOfTextLine(
	ITextViewLine^ textLine
)

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.

Exception Condition
ArgumentNullException

textLine is null.

ObjectDisposedException

textLine has been disposed.

Return to top
Show: