Compartir a través de


ITextDocumentSnapshot.GetLineFromPosition(Int32) Method

Definition

Gets an ITextDocumentSnapshotLine for a line at the given position.

public Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshotLine GetLineFromPosition (int position);
abstract member GetLineFromPosition : int -> Microsoft.VisualStudio.Extensibility.Editor.ITextDocumentSnapshotLine
Public Function GetLineFromPosition (position As Integer) As ITextDocumentSnapshotLine

Parameters

position
Int32

The position.

Returns

A non-null ITextDocumentSnapshotLine.

Exceptions

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

Applies to