Class ScrollBar | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Indicates the size of scrollable content and controls the position of the visible content, either vertically or horizontally. Two Buttons are provided, one to scroll up or left and one to scroll down or right. Between the buttons is a ScrollSlider that can be dragged to control the position of the visible content. The ScrollSlier is sized to show the proportion of the scrollable content to the size of the Viewport.
public class ScrollBar : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, IOrientation, IDesignable
Inheritance
ScrollBar
Implements
Inherited Members
Constructors
Initializes a new instance of View.
Properties
Gets or sets whether Visible will be set to true if the dimension of the scroll bar is less than ScrollableContentSize and false if greater than or equal to.
Gets or sets the amount each mouse wheel event, or click on the increment/decrement buttons, will incremenet/decrement the Position.
Gets or sets the orientation of the View.
Gets or sets the position of the slider relative to ScrollableContentSize.
Gets or sets the size of the content that can be scrolled. This is typically set toGetContentSize().
Gets or sets the size of the visible viewport into the content being scrolled, bounded byScrollableContentSize.
Methods
Causes the View to enable design-time mode. This typically means that the view will load demo data and be configured to allow for design-time manipulation.
Gets or sets the position of the start of the Scroll slider, within the Viewport.
Called when the Viewport is to be cleared.
Called when Frame changes.
Called when a mouse click occurs. Check Flags to see which button was clicked.
Called when a mouse event occurs within the view's Viewport.
OnOrientationChanged(Orientation)
Called when Orientation has been changed.
Called when Position has changed.
Called when Position is changing. Return true to cancel the change.
Called when Position has changed. Indicates how much to scroll.
Called when ScrollableContentSize has changed.
Called when the slider position has changed.
Events
Raised when Orientation has changed.
Raised when Orientation is changing. Can be cancelled.
Raised when the Position has changed.
Raised when the Position is changing. Set Cancel totrue to prevent the position from being changed.
Raised when ScrollableContentSize has changed.
Raised when the Position has changed. Indicates how much to scroll.
Raised when the slider position has changed.