System.Windows.Forms.ScrollBar Members

The members of System.Windows.Forms.ScrollBar are listed below.

See Also: Inherited members from System.Windows.Forms.Control

Public Constructors

Initializes a new instance of the System.Windows.Forms.ScrollBar class.

Public Properties

override
AutoSizebool.

Gets or sets a value indicating whether the System.Windows.Forms.ScrollBar is automatically resized to fit its contents.

override
BackColorSystem.Drawing.Color. Documentation for this section has not yet been entered.
override
BackgroundImageSystem.Drawing.Image. Documentation for this section has not yet been entered.
override
BackgroundImageLayoutImageLayout. Documentation for this section has not yet been entered.
override
FontSystem.Drawing.Font. Documentation for this section has not yet been entered.
override
ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the scroll bar control.

ImeModeImeMode.

Gets or sets the Input Method Editor (IME) mode supported by this control.

LargeChangeint.

Gets or sets a value to be added to or subtracted from the ScrollBar.Value property when the scroll box is moved a large distance.

Maximumint.

Gets or sets the upper limit of values of the scrollable range.

Minimumint.

Gets or sets the lower limit of values of the scrollable range.

SmallChangeint.

Gets or sets the value to be added to or subtracted from the ScrollBar.Value property when the scroll box is moved a small distance.

TabStopbool.

Gets or sets a value indicating whether the user can give the focus to the System.Windows.Forms.ScrollBar control by using the TAB key.

override
Textstring. Documentation for this section has not yet been entered.
Valueint.

Gets or sets a numeric value that represents the current position of the scroll box on the scroll bar control.

Protected Properties

[read-only]
override
CreateParamsCreateParams. Documentation for this section has not yet been entered.
[read-only]
override
DefaultImeModeImeMode.

Gets the default Input Method Editor (IME) mode supported by this control.

[read-only]
override
DefaultMarginPadding.

Gets the default distance between the System.Windows.Forms.ScrollBar control edges and its contents.

Public Methods

override
ToString() : string

Returns a string that represents the System.Windows.Forms.ScrollBar control.

Protected Methods

override
GetScaledBounds(System.Drawing.Rectangle, System.Drawing.SizeF, BoundsSpecified) : System.Drawing.Rectangle

Returns the bounds to use when the System.Windows.Forms.ScrollBar is scaled by a specified amount.

override
OnEnabledChanged(EventArgs)
Documentation for this section has not yet been entered.
override
OnHandleCreated(EventArgs)
Documentation for this section has not yet been entered.
override
OnMouseWheel(MouseEventArgs)

Raises the Control.MouseWheel event

OnScroll(ScrollEventArgs)

Raises the ScrollBar.Scroll event.

OnValueChanged(EventArgs)

Raises the ScrollBar.ValueChanged event.

UpdateScrollInfo()

Updates the System.Windows.Forms.ScrollBar control.

override
WndProc(ref Message)
Documentation for this section has not yet been entered.

Public Events

AutoSizeChanged

Occurs when the value of the ScrollBar.AutoSize property changes.

BackColorChanged

Occurs when the value of the ScrollBar.BackColor property changes.

BackgroundImageChanged

Occurs when the value of the ScrollBar.BackgroundImage property changes.

BackgroundImageLayoutChanged

Occurs when the value of the ScrollBar.BackgroundImageLayout property changes.

Click

Occurs when the control is clicked if the ControlStyles.StandardClick bit flag is set to true in a derived class.

DoubleClick

Occurs when the System.Windows.Forms.ScrollBar control is double-clicked.

FontChanged

Occurs when the value of the ScrollBar.Font property changes.

ForeColorChanged

Occurs when the value of the ScrollBar.ForeColor property changes.

ImeModeChanged

Occurs when the value of the ScrollBar.ImeMode property changes.

MouseClick

Occurs when the user clicks the System.Windows.Forms.ScrollBar control with the mouse.

MouseDoubleClick

Occurs when the user double-clicks the System.Windows.Forms.ScrollBar control with the mouse.

MouseDown

Occurs when the mouse pointer is over the control and the user presses a mouse button.

MouseMove

Occurs when the user moves the mouse pointer over the control.

MouseUp

Occurs when the user moves the mouse pointer over the control and releases a mouse button.

Paint

Occurs when the control is redrawn.

Scroll

Occurs when the scroll box has been moved by either a mouse or keyboard action.

TextChanged

Occurs when the value of the ScrollBar.Text property changes.

ValueChanged

Occurs when the ScrollBar.Value property is changed, either by a ScrollBar.Scroll event or programmatically.