Compartilhar via


ITextViewLine.GetInsertionBufferPositionFromXCoordinate(Double) Method

Definition

Gets the buffer position used if new data were to be inserted at the given x-coordinate.

public:
 Microsoft::VisualStudio::Text::VirtualSnapshotPoint GetInsertionBufferPositionFromXCoordinate(double xCoordinate);
public Microsoft.VisualStudio.Text.VirtualSnapshotPoint GetInsertionBufferPositionFromXCoordinate (double xCoordinate);
abstract member GetInsertionBufferPositionFromXCoordinate : double -> Microsoft.VisualStudio.Text.VirtualSnapshotPoint
Public Function GetInsertionBufferPositionFromXCoordinate (xCoordinate As Double) As VirtualSnapshotPoint

Parameters

xCoordinate
Double

The x-coordinate of the desired point.

Returns

The VirtualSnapshotPoint.

Remarks

If there are no characters at the provided x-coordinate, a point in virtual space will be returned.

If the provided x-coordinate is to the left of the start of the line, the buffer position of the line's left edge will be returned.

Applies to