ITextViewLineCollection.GetIndexOfTextLine(ITextViewLine) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.