IWpfTextViewLineCollection::GetTextViewLineContainingBufferPosition Method (SnapshotPoint)

 

Gets the IWpfTextViewLine that contains the specified text buffer position.

Namespace:   Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

IWpfTextViewLine^ GetTextViewLineContainingBufferPosition(
	SnapshotPoint bufferPosition
)

Parameters

bufferPosition
Type: Microsoft.VisualStudio.Text::SnapshotPoint

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

Return Value

Type: Microsoft.VisualStudio.Text.Formatting::IWpfTextViewLine^

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

Exception Condition
ArgumentOutOfRangeException

bufferPosition is not a valid buffer position.

Return to top
Show: