次の方法で共有


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
Public property Map Gets the mapping between the text position and the scrollbar coordinate for the scrollbar.
Public property ThumbHeight Gets the height of the scrollbar thumb in pixels.
Public property 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).
Public property TrackSpanHeight Gets the height of the scrollbar track as it is rendered in the display (excluding the scroll buttons at the top and bottom).
Public property 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
Public method GetBufferPositionOfYCoordinate Gets the buffer position that corresponds to a y-coordinate in the scrollbar track.
Public method GetYCoordinateOfBufferPosition Gets the y-coordinate in the scrollbar track that corresponds to a buffer position.
Public method GetYCoordinateOfScrollMapPosition Gets the y-coordinate in the scrollbar track that corresponds to a position in scroll map coordinates.

Top

Events

  Name Description
Public event 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.

See Also

Reference

Microsoft.VisualStudio.Text.Editor Namespace