Skip to main content
Version: 4.1

Panel

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Represents a collapsible panel with an optional header that contains a group of controls.

public class Panel : ScrollableControl, IImage

Constructors​

Instance member Panel()​

Initializes a new instance of the Panel class.

Instance member Panel(controls)​

Initializes a new instance of the Panel class with the specified settings.

NameTypeDescription
controlsControl[]An array of Control objects to be added to the panel.

Instance member Panel(location, size, controls)​

Initializes a new instance of the Panel class with the specified settings.

NameTypeDescription
locationPointThe location of the panel on its parent control.
sizeSizeThe size of the panel.
controlsControl[]An array of Control objects to be added to the panel.

Properties​

Instance member AutoShow​

PanelAutoShowMode: Returns or sets a value that indicates whether the collapsed panel is automatically expanded when the mouse hovers over the title bar. (Default: OnClick)

Instance member AutoSize​

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

Value: true if the control automatically resizes based on its contents; otherwise, false. The default is true.

Instance member AutoSizeMode​

AutoSizeMode: Indicates the automatic sizing behavior of the control. (Default: GrowOnly)

Value: One of the AutoSizeMode values. The default value is GrowOnly.

Instance member BorderStyle​

BorderStyle: Indicates the border style for the control. (Default: None)

Value: One of the BorderStyle values. The default is BorderStyle.None.

Instance member ClientArea​

Rectangle: Returns the client rectangle to use in the designer.

Instance member Collapsed​

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

Instance member CollapsedBounds​

Rectangle: Returns the collapsed bounds.

Instance member CollapseSide​

HeaderPosition: Returns or sets a value that indicates to which side should the panel collapse. (Default: Top)

Instance member DisplayRectangle​

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

Value: A Rectangle with the dimensions of the GroupBox.

Instance member Focusable​

Boolean: Returns or sets whether the control can gain the focus. (Default: False)

Value: true if the control is focusable; otherwise, false.

Instance member HeaderAlignment​

HorizontalAlignment: Returns or sets the alignment of the header text in the Panel control. (Default: Left)

Instance member HeaderBackColor​

Color: Returns or sets the background color of the header of the panel.

Instance member HeaderForeColor​

Color: Returns or sets the text color of the header of the panel.

Instance member HeaderPosition​

HeaderPosition: Returns or sets a value that indicates on which side to display the header when the header is visible. (Default: Top)

Instance member HeaderSize​

Int32: Returns or sets the size of the header. When the header is horizontal, the size if the height; when it's vertical, the size if the width. Set it to -1 to reset to the size set in the current theme.

Instance member Image​

Image: Returns or sets the image that is displayed in the header of the panel.

Value: The Image displayed in the header. The default value is null.

Instance member ImageIndex​

Int32: Returns or sets the image list index value of the image in the ImageList displayed in the button control. (Default: -1)

Value: A zero-based index, which represents the image position in an ImageList. The default is -1.

Throws:

Instance member ImageKey​

String: Returns or sets the key accessor for the image in the ImageList displayed in the header of the panel. (Default: "")

Value: A string representing the key of the image.

Instance member ImageList​

ImageList: Returns or sets the ImageList that contains the Image displayed in the header of the panel control. (Default: null)

Value: An ImageList. The default value is null.

Instance member ImageSource​

String: Returns or sets the theme name or URL for the image to display in the header of the panel.

Value: The theme name or URL for the image to display in the header.

Instance member IsVertical​

Boolean: Returns if the panel's header is oriented vertically.

Instance member RightToLeftLayout​

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

Value: true if right-to-left layout is turned on; otherwise, false. The default is false.

Instance member ShowCloseButton​

Boolean: Returns or sets a value that indicates the caption bar displays the close button to collapse or expand the panel. (Default: True)

Instance member ShowHeader​

Boolean: Returns or sets a value that indicates whether the caption bar is visible. (Default: False)

Instance member TabStop​

Boolean: Returns or sets whether the user can give the focus to this control using the TAB key and the Focusable property is set to true. (Default: False)

Value: True if the control can receive the focus using the TAB key.

Instance member Text​

String: Returns or sets the title of the Panel panel. (Default: "")

Instance member Tools​

ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this control.

Instance member ToolTipText​

String: Returns or sets the ToolTip text for the header of the panel. (Default: "")

Value: The ToolTip text to show when the pointer is over the header.

Methods​

Protected member Dispose(disposing)​

ParameterTypeDescription
disposingBoolean

Instance member GetPreferredSize(proposedSize)​

Retrieves the size of a rectangular area into which a control can be fitted.

ParameterTypeDescription
proposedSizeSizeThe custom size specified for the control.

Returns: Size. The Size representing the preferred size of the control.

Protected member GetThemeStateName()​

Retrieves the name of the theme state associated with the control.

Returns: String.

Protected member OnFontChanged(e)​

Fires the FontChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnPanelCollapsed(e)​

Fires the PanelCollapsed event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnPanelExpanded(e)​

Fires the PanelExpanded 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 OnToolClick(e)​

Fires the ToolClick event.

ParameterTypeDescription
eToolClickEventArgsA ToolClickEventArgs that contains the event data.

Protected member OnWebEvent(e)​

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)​

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Protected member OnWebUpdate(state)​

Updates the client component using the state information.

ParameterTypeDescription
stateObjectDynamic state object.

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

Sets the specified bounds of the Panel 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.

Protected member SizeFromClientSize(clientSize)​

Converts the client size into the panel size.

ParameterTypeDescription
clientSizeSize

Returns: Size.

Events​

Instance member PanelCollapsed​

EventHandler Fired when the panel is collapsed.

Instance member PanelExpanded​

EventHandler Fired when the panel is expanded.

Instance member RightToLeftLayoutChanged​

EventHandler Fired when the value of the RightToLeftLayout property changes.

Instance member ToolClick​

ToolClickEventHandler Fired when a ComponentTool is clicked.

Inherited By​

NameDescription
TableLayoutPanelRepresents a panel that dynamically lays out its contents in a grid composed of rows and columns.
BindingNavigatorRepresents the navigation and manipulation user interface (UI) for controls that are bound to a data source.
FlowLayoutPanelRepresents a panel that dynamically arranges its controls horizontally or vertically in automatic rows or columns.
SplitterPanelCreates a panel that is associated with a SplitContainer.
TabPageRepresents a single tab page in a TabControl.
DataRepeaterItemUsed by the DataRepeater control to display data at run time.
AccordionPanelRepresents a panel in a Accordion control.
FlexLayoutPanelRepresents a panel that dynamically arranges its child controls.

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.
IImageProvides access to common image properties across the controls that 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.