ITextSnapshot::GetLineFromLineNumber Method (Int32)

 

Gets an ITextSnapshotLine for the given line number.

Namespace:   Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

ITextSnapshotLine^ GetLineFromLineNumber(
	int lineNumber
)

Parameters

lineNumber
Type: System::Int32

The line number.

Exception Condition
ArgumentOutOfRangeException

lineNumber is less than zero, or greater than or equal to the line count.

Return to top
Show: