Skip to main content

RibbonBarItemButtonGroup

Namespace: Wisej.Web.Ext.RibbonBar

Assembly: Wisej.Web.Ext.RibbonBar (4.1.0.0)

Represents a group of buttons in a RibbonBarGroup organized horizontally.

public class RibbonBarItemButtonGroup : RibbonBarItem

The button group itself doesn't display a text or an image and doesn't fire the click events: each RibbonBarItemButton in Buttons fires its own Click event and the ItemClick event.

Constructors​

Instance member RibbonBarItemButtonGroup()​

Initializes a new instance of RibbonBarItemButtonGroup.

Properties​

Instance member Buttons​

ButtonCollection: Returns the collection of RibbonBarItemButton children.

Buttons added to the collection are changed to Horizontal and their Parent is set to the RibbonBarGroup that contains the button group. Add the button group to its RibbonBarGroup before adding the buttons, otherwise the buttons have no parent and their click events are not fired.

Example:

Creating a row of alignment buttons:

var alignment = new RibbonBarItemButtonGroup();
this.ribbonBarGroupParagraph.Items.Add(alignment);

alignment.Buttons.Add(new RibbonBarItemButton { Name = "alignLeft", ImageSource = "icon-left", ToolTipText = "Align Left" });
alignment.Buttons.Add(new RibbonBarItemButton { Name = "alignCenter", ImageSource = "icon-center", ToolTipText = "Center" });
alignment.Buttons.Add(new RibbonBarItemButton { Name = "alignRight", ImageSource = "icon-right", ToolTipText = "Align Right" });

Instance member Enabled​

Boolean: This property doesn't apply. (Default: True)

Instance member Image​

Image: This property doesn't apply.

Instance member ImageIndex​

Int32: This property doesn't apply.

Instance member ImageKey​

String: This property doesn't apply.

Instance member ImageSource​

String: This property doesn't apply.

Instance member Text​

String: This property doesn't apply. (Default: "")

Instance member ToolTipText​

String: This property doesn't apply. (Default: "")

Methods​

Protected member Dispose(disposing)​

Disposes of the resources (other than memory) used by the RibbonBarPage.

ParameterTypeDescription
disposingBooleantrue when this method is called by the application rather than a finalizer.

Protected member OnAddReferences(items)​

Returns a collection of referenced components or collection of components.

ParameterTypeDescription
itemsIList

Protected member OnWebRender(config)​

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Events​

Instance member Click​

EventHandler This event is not relevant for this class.

Implements​