IScrollMap::GetBufferPositionAtCoordinate Method (Double)
Visual Studio 2015
Gets the buffer position that corresponds to a scrollmap coordinate.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Parameters
- coordinate
-
Type:
System::Double
The scrollbar coordinate.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | coordinate is NaN, less than 0.0 or greater than Maximum. |
Different buffer positions can have the same scroll bar coordinates. This method is guaranteed only to be consistent: it returns the same position for the same coordinate. The exact character returned depends on the implementation of the scroll map. It is generally the first character on the line.
Show: