Share via


IVerticalScrollBar.TrackSpanTop Property

Gets the y-coordinate of the top of the scrollbar track as it is rendered in the display (excluding the scroll buttons at the top and bottom).

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
ReadOnly Property TrackSpanTop As Double
double TrackSpanTop { get; }
property double TrackSpanTop {
    double get ();
}
abstract TrackSpanTop : float with get
function get TrackSpanTop () : double

Property Value

Type: System.Double
The y-coordinate of the top of the scrollbar track as it is rendered in the display (excluding the scroll buttons at the top and bottom).

Remarks

When mapping from scrollbar coordinates to positions in the scrollbar's track, the correct mapping is:

pixel position = (scrollbar coordinate * TrackSpanHeight / (Map.Maximum + Map.ViewportSize)) + TrackSpanTopscrollbar coordinate = (pixel position - TrackSpanTop) * (Map.Maximum + Map.ViewportSize) / TrackSpanHeight.

.NET Framework Security

See Also

Reference

IVerticalScrollBar Interface

Microsoft.VisualStudio.Text.Editor Namespace