Skip to main content
Version: 4.1

Accordion

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Displays collapsible set of AccordionPanel panels for presenting information in a limited amount of space.

public class Accordion : Control, ISupportInitialize

Constructors

Instance member Accordion()

Initializes a new instance of the Accordion class.

Instance member Accordion(panels, onSelectedIndexChanged)

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

NameTypeDescription
panelsAccordionPanel[]An array of AccordionPanel objects to be added to the panel.
onSelectedIndexChangedAction<Object, EventArgs>An Action delegate to handle the SelectedIndexChanged event.

Instance member Accordion(location, size, onSelectedIndexChanged)

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

NameTypeDescription
locationPointThe location of the panel on its parent control.
sizeSizeThe size of the panel.
onSelectedIndexChangedAction<Object, EventArgs>An Action delegate to handle the SelectedIndexChanged event.

Instance member Accordion(location, size, panels, onSelectedIndexChanged)

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

NameTypeDescription
locationPointThe location of the panel on its parent control.
sizeSizeThe size of the panel.
panelsAccordionPanel[]An array of AccordionPanel objects to be added to the panel.
onSelectedIndexChangedAction<Object, EventArgs>An Action delegate to handle the SelectedIndexChanged event.

Properties

Instance member BorderStyle

BorderStyle: Returns or sets the type of border that is drawn around the Accordion panel. (Default: Solid)

Instance member ClientArea

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

Instance member Collapsible

Boolean: Returns or sets a value indicating whether the Accordion control collapses when all the AccordionPanel children are collapsed. (Default: False)

When this property is set to false (default) one panel is always expanded.

Instance member DisplayRectangle

Rectangle: Returns the rectangle that represents the virtual display area of the control.

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 ImageList

ImageList: Returns or sets the images to display on the panel's title bar. (Default: null)

Instance member PanelCount

Int32: Returns the number of panels in the container. (Default: 0)

Instance member Panels

PanelCollection: Returns the collection of panels in the container.

Instance member SelectedIndex

Int32: Returns or sets the index of the currently selected panel. (Default: -1)

Throws:

Instance member SelectedOnTop

Boolean: Returns or sets a value indicating whether the selected panel is moved to the top of the Accordion container. (Default: False)

Instance member SelectedPanel

AccordionPanel: Returns or sets the currently selected panel. (Default: null)

Instance member ShowToolTips

Boolean: Returns or sets whether a panel's ToolTip is shown when the mouse passes over the panel's title. (Default: True)

Methods

Protected member CreateControlsInstance()

This member overrides CreateControlsInstance.

Returns: ControlCollection. A new instance of ControlCollection assigned to the control.

Instance member DeselectPanel(index)

Makes the AccordionPanel following the AccordionPanel with the specified index the current panel.

ParameterTypeDescription
indexInt32The index in the Panels collection of the AccordionPanel to deselect.

Throws:

Instance member DeselectPanel(panel)

Makes the AccordionPanel following the specified AccordionPanel the current panel.

ParameterTypeDescription
panelAccordionPanelThe AccordionPanel to deselect.

Throws:

Instance member DeselectPanel(panelName)

Makes the AccordionPanel following the AccordionPanel the specified name the current panel.

ParameterTypeDescription
panelNameStringThe Name of the panel to deselect.

Throws:

Instance member GetControl(index)

Returns the AccordionPanel panel at the specified location.

ParameterTypeDescription
indexInt32The index of the AccordionPanel to get.

Returns: Control. The AccordionPanel at the specified location.

Throws:

Protected member GetItems()

Returns an array of AccordionPanel controls that belong to the Accordion control.

Returns: Object[]. An array of AccordionPanel controls that belong to the Accordion.

Protected member GetToolTipText(item)

Returns the ToolTip for the specified AccordionPanel.

ParameterTypeDescription
itemObjectThe AccordionPanel that owns the desired ToolTip.

Returns: String. The ToolTip text.

Protected member OnControlAdded(e)

Fires the ControlAdded event.

ParameterTypeDescription
eControlEventArgs

Protected member OnDeselected(e)

Fires the Deselected event.

ParameterTypeDescription
eAccordionEventArgsA TabControlEventArgs that contains the event data.

Protected member OnDeselecting(e)

Fires the Deselecting event.

ParameterTypeDescription
eAccordionCancelEventArgsA AccordionCancelEventArgs that contains the event data.

Protected member OnEnter(e)

Fires the Enter event of the currently active AccordionPanel.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnLayout(e)

Fires the Layout event.

ParameterTypeDescription
eLayoutEventArgsA LayoutEventArgs that contains the event data.

Protected member OnLeave(e)

Fires the Leave event of the currently active AccordionPanel.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnSelected(e)

Fires the Selected event.

ParameterTypeDescription
eAccordionEventArgsA AccordionEventArgs that contains the event data.

Protected member OnSelectedIndexChanged(e)

Fires the SelectedIndexChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnSelecting(e)

Fires the Selecting event.

ParameterTypeDescription
eAccordionCancelEventArgsA AccordionCancelEventArgs 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 RemoveAll()

Removes all the panels and additional controls from this tab control.

Instance member SelectPanel(index)

Makes the AccordionPanel with the specified index the current AccordionPanel.

ParameterTypeDescription
indexInt32The index in the Panels collection of the tab to select.

Throws:

Instance member SelectPanel(panel)

Makes the specified AccordionPanel the current AccordionPanel.

ParameterTypeDescription
panelAccordionPanelThe AccordionPanel to select.

Throws:

Instance member SelectPanel(panelName)

Makes AccordionPanel with the specified name the current AccordionPanel.

ParameterTypeDescription
panelNameStringThe Name of the tab to select.

Throws:

Events

Instance member Deselected

AccordionEventHandler Fired when a panel is deselected.

Instance member Deselecting

AccordionCancelEventHandler Occurs before a panel is deselected, enabling a handler to cancel the panel change.

Instance member Selected

AccordionEventHandler Fired when a panel is selected.

Instance member SelectedIndexChanged

EventHandler Fired when the SelectedIndex property has changed.

Instance member Selecting

AccordionCancelEventHandler Occurs before a panel is selected, enabling a handler to cancel the panel change.

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.