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.
- C#
- VB.NET
public class RibbonBarItemButtonGroup : RibbonBarItem
Public Class RibbonBarItemButtonGroup
Inherits 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
RibbonBarItemButtonGroup()
Initializes a new instance of RibbonBarItemButtonGroup.
Properties
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" });
Enabled
Boolean: This property doesn't apply. (Default: True)
Image
Image: This property doesn't apply.
ImageIndex
Int32: This property doesn't apply.
ImageKey
String: This property doesn't apply.
ImageSource
String: This property doesn't apply.
Text
String: This property doesn't apply. (Default: "")
ToolTipText
String: This property doesn't apply. (Default: "")
Methods
Dispose(disposing)
Disposes of the resources (other than memory) used by the RibbonBarPage.
| Parameter | Type | Description |
|---|---|---|
| disposing | Boolean | true when this method is called by the application rather than a finalizer. |
OnAddReferences(items)
Returns a collection of referenced components or collection of components.
| Parameter | Type | Description |
|---|---|---|
| items | IList |
OnWebRender(config)
Renders the client component.
| Parameter | Type | Description |
|---|---|---|
| config | Object | Dynamic configuration object. |
Events
Click
EventHandler This event is not relevant for this class.
Implements
| Name | Description |
|---|---|
| IUserData | |
| IWisejComponent | |
| IWisejSerializable |