ITextSnapshot.GetLineFromLineNumber(Int32) Method

Definition

Gets an ITextSnapshotLine for the given line number.

C++/CX
public:
 Microsoft::VisualStudio::Text::ITextSnapshotLine ^ GetLineFromLineNumber(int lineNumber);

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

Produkt Verzie
Visual Studio SDK 2015, 2017, 2019, 2022