ITextViewLineCollection.GetIndexOfTextLine(ITextViewLine) Methode

Definition

Ruft den Index der angegebenen Textansichtszeile in den Textzeilen ab.

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

Parameter

textLine
ITextViewLine

Die ITextViewLine, für die der Index gesucht werden soll.

Gibt zurück

Int32

Der Index von ITextViewLine in der Textlines-Liste der Ansicht.

Ausnahmen

textLine ist NULL.

textLine wurde verworfen.

Gilt für