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
'Declaración
ReadOnly Property TrackSpanTop As Double
double TrackSpanTop { get; }
property double TrackSpanTop {
double get ();
}
abstract TrackSpanTop : float
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
- 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.