Condividi tramite


ITextSnapshot.GetLineFromLineNumber(Int32) Method

Definition

Gets an ITextSnapshotLine for the given line number.

public:
 Microsoft::VisualStudio::Text::ITextSnapshotLine ^ GetLineFromLineNumber(int lineNumber);
public:
 Microsoft::VisualStudio::Text::ITextSnapshotLine ^ GetLineFromLineNumber(int lineNumber);
Microsoft::VisualStudio::Text::ITextSnapshotLine GetLineFromLineNumber(int lineNumber);
public Microsoft.VisualStudio.Text.ITextSnapshotLine GetLineFromLineNumber (int lineNumber);
abstract member GetLineFromLineNumber : int -> Microsoft.VisualStudio.Text.ITextSnapshotLine
Public Function GetLineFromLineNumber (lineNumber As Integer) As ITextSnapshotLine

Parameters

lineNumber
Int32

The line number.

Returns

A non-null ITextSnapshotLine.

Exceptions

lineNumber is less than zero or greater than or equal to LineCount.

Applies to