ITextViewLine::ContainsBufferPosition Method (SnapshotPoint)

 

Determines whether the specified buffer position lies within this text line.

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

bool ContainsBufferPosition(
	SnapshotPoint bufferPosition
)

Parameters

bufferPosition
Type: Microsoft.VisualStudio.Text::SnapshotPoint

The buffer position.

Return Value

Type: System::Boolean

true if bufferPosition lies within this text line, otherwise false.

This method handles the special processing required for the last line of the buffer.

Return to top
Show: