IVerticalScrollBar::GetYCoordinateOfBufferPosition Method (SnapshotPoint)

 

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)

double GetYCoordinateOfBufferPosition(
	SnapshotPoint bufferPosition
)

Parameters

bufferPosition
Type: Microsoft.VisualStudio.Text::SnapshotPoint

Desired position.

Return Value

Type: System::Double

The corresponding y-coordinate of the buffer position.

Return to top
Show: