IVerticalFractionMap::GetFractionAtBufferPosition Method (SnapshotPoint)
Visual Studio 2015
Gets the fraction of the vertical extent of the view that corresponds to the specified buffer position.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Parameters
- bufferPosition
-
Type:
Microsoft.VisualStudio.Text::SnapshotPoint
The buffer position.
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.
Show: