ITextViewLine::GetBufferPositionFromXCoordinate Method (Double)
Visual Studio 2015
Gets the buffer position of the character whose character bounds contains the given x-coordinate.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
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).
Show: