ITextSnapshot.GetLineFromLineNumber(Int32) 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 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.