Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Function GetBufferPositionFromXCoordinate ( _
xCoordinate As Double _
) As Nullable(Of SnapshotPoint)
Nullable<SnapshotPoint> GetBufferPositionFromXCoordinate(
double xCoordinate
)
Nullable<SnapshotPoint> GetBufferPositionFromXCoordinate(
double xCoordinate
)
abstract GetBufferPositionFromXCoordinate :
xCoordinate:float -> Nullable<SnapshotPoint>
function GetBufferPositionFromXCoordinate(
xCoordinate : double
) : Nullable<SnapshotPoint>
Parameters
xCoordinate
Type: DoubleThe x-coordinate of the desired character.
Return Value
Type: Nullable<SnapshotPoint>
The text buffer-based point of the character at xCoordinate, or null if there is no character at that position.
Remarks
This is equivalent to GetBufferPositionFromXCoordinate(xCoordinate, false).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.