Skip to main content

RibbonBarGroupCollection

Namespace: Wisej.Web.Ext.RibbonBar

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

Represents a collection of RibbonBarGroup in a RibbonBarPage.

public class RibbonBarGroupCollection : RibbonBarCollectionBase<RibbonBarPage, RibbonBarGroup>

Properties​

Instance member 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:

Example:

Retrieving a RibbonBarGroup by name:

this.ribbonBarPage1.Groups["clipboard"].Enabled = false;

Methods​

Instance member Add(item)​

Adds the specified item to the collection.

ParameterTypeDescription
itemRibbonBarGroupThe 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 });

Instance member Insert(index, item)​

Inserts the specified item in the collection at the specified index .

ParameterTypeDescription
indexInt32The position to insert the specified RibbonBarGroup at.
itemRibbonBarGroupThe 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" });