IVerticalScrollBar.TrackSpanTop Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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