System.Windows.Forms.UpDownBase Members

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

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

Public Constructors

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

Public Properties

override
AutoScrollbool.

Gets a value indicating whether the container will allow the user to scroll to any controls placed outside of its visible boundaries.

AutoScrollMarginSystem.Drawing.Size.

Gets or sets the size of the auto-scroll margin.

AutoScrollMinSizeSystem.Drawing.Size.

Gets or sets the minimum size of the auto-scroll area.

override
AutoSizebool.

Gets or sets a value indicating whether the control should automatically resize based on its contents.

override
BackColorSystem.Drawing.Color.

Gets or sets the background color for the text box portion of the spin box (also known as an up-down control).

override
BackgroundImageSystem.Drawing.Image.

Gets or sets the background image for the System.Windows.Forms.UpDownBase.

override
BackgroundImageLayoutImageLayout.

Gets or sets the layout of the UpDownBase.BackgroundImage of the System.Windows.Forms.UpDownBase.

BorderStyleBorderStyle.

Gets or sets the border style for the spin box (also known as an up-down control).

override
ContextMenuContextMenu.

Gets or sets the shortcut menu associated with the spin box (also known as an up-down control).

override
ContextMenuStripContextMenuStrip.

Gets or sets the shortcut menu for the spin box (also known as an up-down control).

[read-only]
DockPaddingScrollableControl.DockPaddingEdges.

Gets the dock padding settings for all edges of the System.Windows.Forms.UpDownBase control.

[read-only]
override
Focusedbool.

Returns true if this control has focus.

override
ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the spin box (also known as an up-down control).

InterceptArrowKeysbool.

Gets or sets a value indicating whether the user can use the UP ARROW and DOWN ARROW keys to select values.

override
MaximumSizeSystem.Drawing.Size.

Gets or sets the maximum size of the spin box (also known as an up-down control).

override
MinimumSizeSystem.Drawing.Size.

Gets or sets the minimum size of the spin box (also known as an up-down control).

[read-only]
PreferredHeightint.

Gets the height of the spin box (also known as an up-down control).

ReadOnlybool.

Gets or sets a value indicating whether the text can be changed by the use of the up or down buttons only.

override
Textstring.

Gets or sets the text displayed in the spin box (also known as an up-down control).

TextAlignHorizontalAlignment.

Gets or sets the alignment of the text in the spin box (also known as an up-down control).

UpDownAlignLeftRightAlignment.

Gets or sets the alignment of the up and down buttons on the spin box (also known as an up-down control).

Protected Properties

ChangingTextbool.

Gets or sets a value indicating whether the text property is being changed internally by its parent class.

[read-only]
override
CreateParamsCreateParams.

Gets the required creation parameters when the control handle is created.

[read-only]
override
DefaultSizeSystem.Drawing.Size.

Gets the default size of the control.

UserEditbool.

Gets or sets a value indicating whether a value has been entered by the user.

Public Methods

abstract
DownButton()

When overridden in a derived class, handles the clicking of the down button on the spin box (also known as an up-down control).

Select(int, int)

Selects a range of text in the spin box (also known as an up-down control) specifying the starting position and number of characters to select.

abstract
UpButton()

When overridden in a derived class, handles the clicking of the up button on the spin box (also known as an up-down control).

Protected Methods

override
Dispose(bool)
Documentation for this section has not yet been entered.
OnChanged(object, EventArgs)

When overridden in a derived class, raises the Changed event.

override
OnFontChanged(EventArgs)

Raises the Control.FontChanged event.

override
OnHandleCreated(EventArgs)

Raises the Control.HandleCreated event.

override
OnHandleDestroyed(EventArgs)

Raises the Control.HandleDestroyed event.

override
OnLayout(LayoutEventArgs)

Raises the Control.Layout event.

override
OnMouseDown(MouseEventArgs)

Raises the Control.MouseDown event.

override
OnMouseUp(MouseEventArgs)

Raises the Control.MouseUp event.

override
OnMouseWheel(MouseEventArgs)

Raises the Control.MouseWheel event.

override
OnPaint(PaintEventArgs)

Raises the Control.Paint event.

OnTextBoxKeyDown(object, KeyEventArgs)

Raises the Control.KeyDown event.

OnTextBoxKeyPress(object, KeyPressEventArgs)

Raises the Control.KeyPress event.

OnTextBoxLostFocus(object, EventArgs)

Raises the Control.LostFocus event.

OnTextBoxResize(object, EventArgs)

Raises the Control.Resize event.

OnTextBoxTextChanged(object, EventArgs)

Raises the Control.TextChanged event.

override
SetBoundsCore(int, int, int, int, BoundsSpecified)
Documentation for this section has not yet been entered.
abstract
UpdateEditText()

When overridden in a derived class, updates the text displayed in the spin box (also known as an up-down control).

ValidateEditText()

When overridden in a derived class, validates the text displayed in the spin box (also known as an up-down control).

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

Public Events

AutoSizeChanged

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

BackgroundImageChanged

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

BackgroundImageLayoutChanged

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

MouseEnter

Occurs when the mouse pointer enters the System.Windows.Forms.UpDownBase control.

MouseHover

Occurs when the mouse pointer rests on the System.Windows.Forms.UpDownBase control.

MouseLeave

Occurs when the mouse pointer leaves the System.Windows.Forms.UpDownBase control.

MouseMove

Occurs when the user moves the mouse pointer over the System.Windows.Forms.UpDownBase control.