Class ExGroupBox
- Namespace
- ExControls
- Assembly
- ExControls.dll
Extended GroupBox control: in the custom style it draws the border with its own color, thickness and style, and the text of a disabled group box in its own color.
[ToolboxBitmap(typeof(ToolboxIcons), "Toolbox.ExGroupBox.ico")]
public class ExGroupBox : GroupBox, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IExControl, IThemeable
- Inheritance
-
ExGroupBox
- Implements
- Inherited Members
- Extension Methods
Constructors
ExGroupBox()
Initializes a new instance of the ExGroupBox class in the default style.
public ExGroupBox()
Properties
BorderColor
Color of the GroupBox's border.
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color of the GroupBox's border.")]
public Color BorderColor { get; set; }
Property Value
BorderStyle
Style of the GroupBox's border.
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Style of the GroupBox's border.")]
public DashStyle BorderStyle { get; set; }
Property Value
BorderThickness
Width of the GroupBox's border.
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Width of the GroupBox's border.")]
public int BorderThickness { 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
DisabledForeColor
Color of the GroupBox's text when the control is disabled.
[Browsable(true)]
[ExCategory(CategoryType.Appearance)]
[ExDescription("Color of the GroupBox's text when the control is disabled.")]
public Color DisabledForeColor { 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
OnBorderColorChanged()
Raises the BorderColorChanged event.
protected virtual void OnBorderColorChanged()
OnBorderStyleChanged()
Raises the BorderStyleChanged event.
protected virtual void OnBorderStyleChanged()
OnBorderThicknessChanged()
Raises the BorderThicknessChanged event.
protected virtual void OnBorderThicknessChanged()
OnDefaultStyleChanged()
Raises the DefaultStyleChanged event.
protected virtual void OnDefaultStyleChanged()
OnDisabledForeColorChanged()
Raises the DisabledForeColor event.
protected virtual void OnDisabledForeColorChanged()
OnLineDrawing(LinePenEventArgs)
Raises the LineDrawing event.
protected virtual void OnLineDrawing(LinePenEventArgs e)
Parameters
eLinePenEventArgsA LinePenEventArgs with the pen used to draw the line.
OnPaint(PaintEventArgs)
Raises the Paint event.
protected override void OnPaint(PaintEventArgs e)
Parameters
ePaintEventArgsA PaintEventArgs that contains the event data.
Events
BorderColorChanged
Occurs when the BorderColor property changes.
[ExCategory("Changed Property")]
[ExDescription("Occurs when the BorderColor property changes.")]
public event EventHandler? BorderColorChanged
Event Type
BorderStyleChanged
Occurs when the BorderStyle property changes.
[ExCategory("Changed Property")]
[ExDescription("Occurs when the BorderStyle property changes.")]
public event EventHandler? BorderStyleChanged
Event Type
BorderThicknessChanged
Occurs when the BorderThickness property changes.
[ExCategory("Changed Property")]
[ExDescription("Occurs when the BorderThickness property changes.")]
public event EventHandler? BorderThicknessChanged
Event Type
DefaultStyleChanged
Occurs when the DefaultStyle property changes.
[ExCategory("Changed Property")]
[ExDescription("Occurs when the DefaultStyle property changes.")]
public event EventHandler? DefaultStyleChanged
Event Type
DisabledForeColorChanged
Occurs when the DisabledForeColor property changes.
[ExCategory("Changed Property")]
[ExDescription("Occurs when the DisabledForeColor property changes.")]
public event EventHandler? DisabledForeColorChanged
Event Type
LineDrawing
Occurs when the Line is drawing.
[ExCategory(CategoryType.Appearance)]
[ExDescription("Occurs when the Line is drawing.")]
public event EventHandler<LinePenEventArgs>? LineDrawing