ITextViewLineCollection.GetTextViewLineContainingBufferPosition Method

Definition

Gets the ITextViewLine that contains the specified text buffer position.

public:
 Microsoft::VisualStudio::Text::Formatting::ITextViewLine ^ GetTextViewLineContainingBufferPosition(Microsoft::VisualStudio::Text::SnapshotPoint bufferPosition);
public Microsoft.VisualStudio.Text.Formatting.ITextViewLine GetTextViewLineContainingBufferPosition (Microsoft.VisualStudio.Text.SnapshotPoint bufferPosition);
abstract member GetTextViewLineContainingBufferPosition : Microsoft.VisualStudio.Text.SnapshotPoint -> Microsoft.VisualStudio.Text.Formatting.ITextViewLine
Public Function GetTextViewLineContainingBufferPosition (bufferPosition As SnapshotPoint) As ITextViewLine

Parameters

bufferPosition
SnapshotPoint

The text buffer position used to search for a text line.

Returns

An ITextViewLine that contains the position, or null if none exists.

Exceptions

bufferPosition is not a valid buffer position.

Applies to