Skip to main content

RibbonBarPageCollection

Namespace: Wisej.Web.Ext.RibbonBar

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

Represents a collection of RibbonBarPage in a RibbonBar control.

public class RibbonBarPageCollection : RibbonBarCollectionBase<RibbonBar, RibbonBarPage>

Properties​

Instance member Item(name)​

RibbonBarPage: Returns the first RibbonBarPage with the specified name .

Value: The first RibbonBarPage with the specified name or null.

The comparison with the Name property is case insensitive.

Throws:

Example:

Retrieving a RibbonBarPage by name:

this.ribbonBar1.Pages["review"].Visible = false;

Methods​

Instance member Add(item)​

Adds the specified item to the collection.

ParameterTypeDescription
itemRibbonBarPageThe RibbonBarPage to add to the collection.

The Parent of the item is set to the RibbonBar that owns this collection.

Example:

Adding a new RibbonBarPage:

this.ribbonBar1.Pages.Add(new RibbonBarPage { Name = "view", Text = "&View" });

Instance member Insert(index, item)​

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

ParameterTypeDescription
indexInt32The position to insert the specified RibbonBarPage at.
itemRibbonBarPageThe RibbonBarPage to insert in the collection.

The Parent of the item is set to the RibbonBar that owns this collection.

Example:

Inserting a RibbonBarPage at a specific position:

this.ribbonBar1.Pages.Insert(1, new RibbonBarPage { Name = "design", Text = "&Design" });