Partager via


IVerticalScrollBar.TrackSpanTop Property

Definition

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).

public:
 property double TrackSpanTop { double get(); };
public:
 property double TrackSpanTop { double get(); };
public double TrackSpanTop { get; }
member this.TrackSpanTop : double
Public ReadOnly Property TrackSpanTop As Double

Property Value

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

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

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

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

Applies to