IVerticalScrollBar Interface
Represents a vertical scroll bar.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
| Name | Description | |
|---|---|---|
![]() | Map | Gets the mapping between the text position and the scrollbar coordinate for the scrollbar. |
![]() | ThumbHeight | Gets the height of the scrollbar thumb in pixels. |
![]() | TrackSpanBottom | Gets the y-coordinate of the bottom of the scrollbar track as it is rendered in the display (excluding the scroll buttons at the top and bottom). |
![]() | TrackSpanHeight | Gets the height of the scrollbar track as it is rendered in the display (excluding the scroll buttons at the top and bottom). |
![]() | TrackSpanTop | 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). |
| Name | Description | |
|---|---|---|
![]() | GetBufferPositionOfYCoordinate(Double) | Gets the buffer position that corresponds to a y-coordinate in the scrollbar track. |
![]() | GetYCoordinateOfBufferPosition(SnapshotPoint) | Gets the y-coordinate in the scrollbar track that corresponds to a buffer position. |
![]() | GetYCoordinateOfScrollMapPosition(Double) | Gets the y-coordinate in the scrollbar track that corresponds to a position in scroll map coordinates. |
| Name | Description | |
|---|---|---|
![]() | TrackSpanChanged | Occurs when the span of the scrollbar track dimensions is changed. For example, they could change as a result of resizing the view. |
For information about extending margins and scrollbars, see the "Extending Margins and Scrollbars" section in Editor Extension Points.


