Freigeben über


IVerticalFractionMap.GetFractionAtBufferPosition(SnapshotPoint) Method

Definition

Gets the fraction of the vertical extent of the view that corresponds to the specified buffer position.

public:
 double GetFractionAtBufferPosition(Microsoft::VisualStudio::Text::SnapshotPoint bufferPosition);
public double GetFractionAtBufferPosition (Microsoft.VisualStudio.Text.SnapshotPoint bufferPosition);
abstract member GetFractionAtBufferPosition : Microsoft.VisualStudio.Text.SnapshotPoint -> double
Public Function GetFractionAtBufferPosition (bufferPosition As SnapshotPoint) As Double

Parameters

bufferPosition
SnapshotPoint

The buffer position.

Returns

The corresponding fraction of the vertical extent of the view.

Remarks

Different buffer positions can have the same fractions. This method is guaranteed only to be consistent: it will return the same fraction for the same position. The exact character returned depends on the implementation of the fraction map. In general, it is the first character on the line, but this is not guaranteed.

Applies to