IVerticalScrollBar.GetYCoordinateOfBufferPosition Method
Gets the y-coordinate in the scrollbar track that corresponds to a buffer position.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Dichiarazione
Function GetYCoordinateOfBufferPosition ( _
bufferPosition As SnapshotPoint _
) As Double
double GetYCoordinateOfBufferPosition(
SnapshotPoint bufferPosition
)
double GetYCoordinateOfBufferPosition(
SnapshotPoint bufferPosition
)
abstract GetYCoordinateOfBufferPosition :
bufferPosition:SnapshotPoint -> float
function GetYCoordinateOfBufferPosition(
bufferPosition : SnapshotPoint
) : double
Parameters
- bufferPosition
Type: Microsoft.VisualStudio.Text.SnapshotPoint
Desired position.
Return Value
Type: System.Double
The corresponding y-coordinate of the buffer position.
.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.