IVerticalScrollBar Interface
Represents a vertical scroll bar.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'宣言
Public Interface IVerticalScrollBar
public interface IVerticalScrollBar
public interface class IVerticalScrollBar
type IVerticalScrollBar = interface end
public interface IVerticalScrollBar
The IVerticalScrollBar type exposes the following members.
Properties
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). |
Top
Methods
Name | Description | |
---|---|---|
GetBufferPositionOfYCoordinate | Gets the buffer position that corresponds to a y-coordinate in the scrollbar track. | |
GetYCoordinateOfBufferPosition | Gets the y-coordinate in the scrollbar track that corresponds to a buffer position. | |
GetYCoordinateOfScrollMapPosition | Gets the y-coordinate in the scrollbar track that corresponds to a position in scroll map coordinates. |
Top
Events
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. |
Top
Remarks
For information about extending margins and scrollbars, see the "Extending Margins and Scrollbars" section in Editor Extension Points.