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
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
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
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
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
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
Methods
ApplyTheme(ExTheme)
Sets the colors and appearance of the control by the theme.
public void ApplyTheme(ExTheme theme)
Parameters
themeExTheme
OnDefaultStyleChanged()
Raises the DefaultStyleChanged event.
protected virtual void OnDefaultStyleChanged()
OnEnter(EventArgs)
Raises the Enter event.
protected override void OnEnter(EventArgs e)
Parameters
OnGotFocus(EventArgs)
Raises the GotFocus event.
protected override void OnGotFocus(EventArgs e)
Parameters
OnLeave(EventArgs)
Raises the Leave event.
protected override void OnLeave(EventArgs e)
Parameters
OnLostFocus(EventArgs)
Raises the LostFocus event.
protected override void OnLostFocus(EventArgs e)
Parameters
OnMouseEnter(EventArgs)
Raises the MouseEnter event.
protected override void OnMouseEnter(EventArgs e)
Parameters
OnMouseLeave(EventArgs)
Raises the MouseLeave event.
protected override void OnMouseLeave(EventArgs e)
Parameters
OnPaint(PaintEventArgs)
Raises the Paint event.
protected override void OnPaint(PaintEventArgs e)
Parameters
ePaintEventArgsA 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