Skip to main content
Version: 4.1

GroupBox

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a Wisej control that displays a frame around a group of controls with an optional caption.

public class GroupBox : Control

Constructors

Instance member GroupBox()

Initializes a new instance of the GroupBox class.

Instance member GroupBox(text, controls)

Initializes a new instance of the GroupBox class with the specified text.

NameTypeDescription
textStringThe text to display on the GroupBox.
controlsControl[]An array of control objects to add to the GroupBox.

Instance member GroupBox(text, location, size, controls)

Initializes a new instance of the GroupBox class with the specified controls, text, and collapsed state.

NameTypeDescription
textStringThe text to display on the GroupBox.
locationPointInitial location.
sizeSizeInitial size.
controlsControl[]An array of control objects to add to the GroupBox.

Properties

Instance member AllowHtml

Boolean: Returns or sets a value indicating that the control can display html in the Text property. (Default: False)

Instance member AutoSize

Boolean: Returns or sets a value that indicates whether the GroupBox resizes based on its contents. (Default: False)

Instance member AutoSizeMode

AutoSizeMode: Returns or sets the mode by which the Button automatically resizes itself. (Default: GrowOnly)

Instance member Checked

Boolean: Gets or sets whether the checkbox next to the group box title is checked or unchecked. (Default: True)

Instance member Collapsed

Boolean: Returns or sets a value that indicates whether the GroupBox is collapsed or expanded. (Default: False)

Instance member CollapsedBounds

Rectangle: Returns the collapsed bounds.

Protected member DefaultPadding

Padding: Returns the Padding structure that contains the default padding settings for a GroupBox control.

Instance member DisplayRectangle

Rectangle: Returns a rectangle that represents the inner dimensions of the GroupBox control.

Instance member RightToLeftLayout

Boolean: Enables or disables right-to-left layout when the value of RightToLeft is Yes (Default: False)

Instance member Selectable

Boolean: (Default: True)

Instance member ShowCheckBox

Boolean: Gets or sets whether the group box shows a checkbox next to the text. (Default: False)

Instance member ShowCloseButton

Boolean: Returns or sets a value that indicates the GroupBox displays the open/close button next to the title. (Default: False)

Instance member UseMnemonic

Boolean: Returns or sets whether the first character that is preceded by an ampersand (&) is used as the mnemonic key of the control. (Default: True)

Methods

Protected member OnCheckedChanged(e)

Fires the CheckedChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnControlAdded(e)

Fires the ControlAdded event.

ParameterTypeDescription
eControlEventArgsA ControlEventArgs that contains the event data.

Protected member OnGroupBoxCollapsed(e)

Fires the GroupBoxCollapsed event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnGroupBoxExpanded(e)

Fires the GroupBoxExpanded event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnRightToLeftLayoutChanged(e)

Fires the RightToLeftLayoutChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnWebEvent(e)

ParameterTypeDescription
eWisejEventArgs

Protected member OnWebRender(config)

ParameterTypeDescription
configObject

Protected member SetBoundsCore(x, y, width, height, specified)

Sets the specified bounds of the GroupBox control.

ParameterTypeDescription
xInt32The new Left property value of the control.
yInt32The new Top property value of the control.
widthInt32The new Width property value of the control.
heightInt32The new Height property value of the control.
specifiedBoundsSpecifiedA combination of the BoundsSpecified values.

Events

Instance member CheckedChanged

EventHandler Fired when the value of the Checked property changes.

Instance member GroupBoxCollapsed

EventHandler Fired when the groupbox is collapsed.

Instance member GroupBoxExpanded

EventHandler Fired when the groupbox is expanded.

Instance member RightToLeftLayoutChanged

EventHandler Fired when the value of the RightToLeftLayout property changes.

Implements

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IBindableComponentBindable components implement this interface.
IDropTargetControls that support drag & drop operations implement this interface.
IWisejComponentAll wisej components implement this interface.
IWisejControlAll wisej controls derived from the Control class must implement this interface.
IWisejSerializableAllows an object to serialize itself.