RibbonBarPageCollection
Namespace: Wisej.Web.Ext.RibbonBar
Assembly: Wisej.Web.Ext.RibbonBar (4.1.0.0)
Represents a collection of RibbonBarPage in a RibbonBar control.
- C#
- VB.NET
public class RibbonBarPageCollection : RibbonBarCollectionBase<RibbonBar, RibbonBarPage>
Public Class RibbonBarPageCollection
Inherits RibbonBarCollectionBase(Of RibbonBar, RibbonBarPage)
Properties
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:
- ArgumentNullException name is null.
Example:
Retrieving a RibbonBarPage by name:
this.ribbonBar1.Pages["review"].Visible = false;
Methods
Add(item)
Adds the specified item to the collection.
| Parameter | Type | Description |
|---|---|---|
| item | RibbonBarPage | The 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" });
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 RibbonBarPage at. |
| item | RibbonBarPage | The 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" });