ITextSnapshot::GetLineFromPosition Method (Int32)

 

Gets an ITextSnapshotLine for a line at the given position.

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

ITextSnapshotLine^ GetLineFromPosition(
	int position
)

Parameters

position
Type: System::Int32

The position.

Exception Condition
ArgumentOutOfRangeException

position is less than zero or greater than the length of the line.

Return to top
Show: