Freigeben über


ITextViewLineCollection.GetIndexOfTextLine(ITextViewLine) Method

Definition

Gets the index in the text lines of the given text view line.

public:
 int GetIndexOfTextLine(Microsoft::VisualStudio::Text::Formatting::ITextViewLine ^ textLine);
public:
 int GetIndexOfTextLine(Microsoft::VisualStudio::Text::Formatting::ITextViewLine ^ textLine);
int GetIndexOfTextLine(Microsoft::VisualStudio::Text::Formatting::ITextViewLine const & textLine);
public int GetIndexOfTextLine (Microsoft.VisualStudio.Text.Formatting.ITextViewLine textLine);
abstract member GetIndexOfTextLine : Microsoft.VisualStudio.Text.Formatting.ITextViewLine -> int
Public Function GetIndexOfTextLine (textLine As ITextViewLine) As Integer

Parameters

textLine
ITextViewLine

The ITextViewLine for which to find the index.

Returns

The index of the ITextViewLine in the view's TextLines list.

Exceptions

textLine is null.

textLine has been disposed.

Applies to