GroupBox

Wisej.Web.GroupBox

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

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

public class GroupBox : Control

Constructors

GroupBox()

Initializes a new instance of the GroupBox class.

GroupBox(text, controls)

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

Name
Type
Description

text

The text to display on the GroupBox.

controls

An array of control objects to add to the GroupBox.

GroupBox(text, location, size, controls)

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

Name
Type
Description

text

The text to display on the GroupBox.

location

Initial location.

size

Initial size.

controls

An array of control objects to add to the GroupBox.

Properties

AllowHtml

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

AutoSize

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

AutoSizeMode

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

Checked

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

Collapsed

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

CollapsedBounds

Rectangle: Returns the collapsed bounds.

DefaultPadding

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

DisplayRectangle

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

RightToLeftLayout

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

ShowCheckBox

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

ShowCloseButton

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

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

OnCheckedChanged(e)

Fires the CheckedChanged event.

Parameter
Type
Description

e

A EventArgs that contains the event data.

OnControlAdded(e)

Fires the ControlAdded event.

Parameter
Type
Description

e

A ControlEventArgs that contains the event data.

OnGroupBoxCollapsed(e)

Fires the GroupBoxCollapsed event.

Parameter
Type
Description

e

A EventArgs that contains the event data.

OnGroupBoxExpanded(e)

Fires the GroupBoxExpanded event.

Parameter
Type
Description

e

A EventArgs that contains the event data.

OnRightToLeftLayoutChanged(e)

Fires the RightToLeftLayoutChanged event.

Parameter
Type
Description

e

A EventArgs that contains the event data.

OnWebEvent(e)

Parameter
Type
Description

OnWebRender(config)

Parameter
Type
Description

config

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

Sets the specified bounds of the GroupBox control.

Parameter
Type
Description

x

The new Left property value of the control.

y

The new Top property value of the control.

width

The new Width property value of the control.

height

The new Height property value of the control.

specified

A combination of the BoundsSpecified values.

Events

CheckedChanged

EventHandler Fired when the value of the Checked property changes.

GroupBoxCollapsed

EventHandler Fired when the groupbox is collapsed.

GroupBoxExpanded

EventHandler Fired when the groupbox is expanded.

RightToLeftLayoutChanged

EventHandler Fired when the value of the RightToLeftLayout property changes.

Implements

Name
Description

Provides access to the UserData and Tag properties associated to the component implementing this interface.

Bindable components implement this interface.

Controls that support drag & drop operations implement this interface.

All wisej components implement this interface.

All wisej controls derived from the Control class must implement this interface.

Allows an object to serialize itself.

Last updated

Was this helpful?