IVerticalScrollBar Interface
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.
Represents a vertical scroll bar.
public interface class IVerticalScrollBar
public interface class IVerticalScrollBar
__interface IVerticalScrollBar
public interface IVerticalScrollBar
type IVerticalScrollBar = interface
Public Interface IVerticalScrollBar
Remarks
For information about extending margins and scrollbars, see the "Extending Margins and Scrollbars" section in Language Service and Editor Extension Points.
Properties
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). |
Methods
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. |
Events
TrackSpanChanged |
Occurs when the span of the scrollbar track dimensions is changed. For example, they could change as a result of resizing the view. |