Table of Contents

Class ExNumericUpDown

Namespace
ExControls
Assembly
ExControls.dll

Extended NumericUpDown control: in the custom style it draws the border and the up-down buttons itself with its own colors.

[ToolboxBitmap(typeof(ToolboxIcons), "Toolbox.ExNumericUpDown.ico")]
public class ExNumericUpDown : NumericUpDown, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, ISupportInitialize, IExControl, IThemeable
Inheritance
ExNumericUpDown
Implements
Inherited Members
Extension Methods

Constructors

ExNumericUpDown()

Initializes a new instance of the ExNumericUpDown class in the default style.

public ExNumericUpDown()

Properties

ArrowsColor

Color of the arrows which is in this Control on the Up and Down buttons

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color of the arrows which is in this Control in the Up and Down buttons.")]
public Color ArrowsColor { get; set; }

Property Value

Color

BackColor

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

public override Color BackColor { get; set; }

Property Value

Color

A Color that represents the background color of the text box portion of the spin box.

BorderColor

Color of the Control's border

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color of the Control's border.")]
public Color BorderColor { get; set; }

Property Value

Color

DefaultStyle

Gets or sets whether the control uses the default Windows style; false = the custom style drawn by the control with its own colors.

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Default style of the Control.")]
public bool DefaultStyle { get; set; }

Property Value

bool

HighlightColor

Color of the Control's border when mouse is over the Control

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color of the Control's border when mouse is over the Control.")]
public Color HighlightColor { get; set; }

Property Value

Color

SelectedButtonColor

Color the Up and Down buttons when they are selected

[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color the Up and Down buttons when they are selected.")]
public Color SelectedButtonColor { get; set; }

Property Value

Color

Methods

ApplyTheme(ExTheme)

Sets the colors and appearance of the control by the theme.

public void ApplyTheme(ExTheme theme)

Parameters

theme ExTheme

OnDefaultStyleChanged()

Raises the DefaultStyleChanged event.

protected virtual void OnDefaultStyleChanged()

OnEnter(EventArgs)

Raises the Enter event.

protected override void OnEnter(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.

OnGotFocus(EventArgs)

Raises the GotFocus event.

protected override void OnGotFocus(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.

OnLeave(EventArgs)

Raises the Leave event.

protected override void OnLeave(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.

OnLostFocus(EventArgs)

Raises the LostFocus event.

protected override void OnLostFocus(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.

OnMouseEnter(EventArgs)

Raises the MouseEnter event.

protected override void OnMouseEnter(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.

OnMouseLeave(EventArgs)

Raises the MouseLeave event.

protected override void OnMouseLeave(EventArgs e)

Parameters

e EventArgs

An EventArgs that contains the event data.

OnPaint(PaintEventArgs)

Raises the Paint event.

protected override void OnPaint(PaintEventArgs e)

Parameters

e PaintEventArgs

A PaintEventArgs that contains the event data.

Events

DefaultStyleChanged

Occurs when the DefaultStyle property changes.

[ExCategory("Changed Property")]
[ExDescription("Occurs when the BorderColor property changes.")]
public event EventHandler? DefaultStyleChanged

Event Type

EventHandler