RibbonBarGroupCollection
Namespace: Wisej.Web.Ext.RibbonBar
Assembly: Wisej.Web.Ext.RibbonBar (4.1.0.0)
Represents a collection of RibbonBarGroup in a RibbonBarPage.
- C#
- VB.NET
public class RibbonBarGroupCollection : RibbonBarCollectionBase<RibbonBarPage, RibbonBarGroup>
Public Class RibbonBarGroupCollection
Inherits RibbonBarCollectionBase(Of RibbonBarPage, RibbonBarGroup)
Properties
Item(name)
RibbonBarGroup: Returns the first RibbonBarGroup with the specified name .
Value: The first RibbonBarGroup with the specified name or null.
The comparison with the Name property is case insensitive.
Throws:
- ArgumentNullException name is null.
Example:
Retrieving a RibbonBarGroup by name:
this.ribbonBarPage1.Groups["clipboard"].Enabled = false;
Methods
Add(item)
Adds the specified item to the collection.
| Parameter | Type | Description |
|---|---|---|
| item | RibbonBarGroup | The RibbonBarGroup to add to the collection. |
The Parent of the item is set to the RibbonBarPage that owns this collection.
Example:
Adding a new RibbonBarGroup:
this.ribbonBarPage1.Groups.Add(new RibbonBarGroup { Name = "editing", Text = "Editing", ShowButton = true });
Insert(index, item)
Inserts the specified item in the collection at the specified index .
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | The position to insert the specified RibbonBarGroup at. |
| item | RibbonBarGroup | The RibbonBarGroup to insert in the collection. |
The Parent of the item is set to the RibbonBarPage that owns this collection.
Example:
Inserting a RibbonBarGroup at a specific position:
this.ribbonBarPage1.Groups.Insert(0, new RibbonBarGroup { Name = "clipboard", Text = "Clipboard" });