Partilhar via


ITextSnapshot.GetLineFromPosition(Int32) Method

Definition

Gets an ITextSnapshotLine for a line at the given position.

public:
 Microsoft::VisualStudio::Text::ITextSnapshotLine ^ GetLineFromPosition(int position);
public:
 Microsoft::VisualStudio::Text::ITextSnapshotLine ^ GetLineFromPosition(int position);
Microsoft::VisualStudio::Text::ITextSnapshotLine GetLineFromPosition(int position);
public Microsoft.VisualStudio.Text.ITextSnapshotLine GetLineFromPosition (int position);
abstract member GetLineFromPosition : int -> Microsoft.VisualStudio.Text.ITextSnapshotLine
Public Function GetLineFromPosition (position As Integer) As ITextSnapshotLine

Parameters

position
Int32

The position.

Returns

A non-null ITextSnapshotLine.

Exceptions

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

Applies to