ITextViewLine::GetBufferPositionFromXCoordinate Method (Double)

 

Gets the buffer position of the character whose character bounds contains the given x-coordinate.

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

Nullable<SnapshotPoint> GetBufferPositionFromXCoordinate(
	double xCoordinate
)

Parameters

xCoordinate
Type: System::Double

The x-coordinate of the desired character.

Return Value

Type: System::Nullable<SnapshotPoint>

The text buffer-based point of the character at xCoordinate, or null if there is no character at that position.

This is equivalent to GetBufferPositionFromXCoordinate(xCoordinate, false).

Return to top
Show: