Class CommandBarController.CommandBarsCollection
Represents a collection of CommandBar objects.
Inheritance
System.Object
CommandBarController.CommandBarsCollection
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public sealed class CommandBarsCollection : CollectionBase
Constructors
CommandBarsCollection(CommandBarController)
Creates a new instance of the CommandBarsCollection class.
Declaration
public CommandBarsCollection(CommandBarController cbctrlr)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBarController | cbctrlr | The CommandBarController that this collection belongs to. |
Properties
Item[Int32]
Returns the CommandBar at the specified index.
Declaration
public CommandBar this[int nindex] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | nindex |
Property Value
| Type | Description |
|---|---|
| CommandBar | The zero-based index of the CommandBar to get. |
Methods
Add(CommandBar)
Adds a CommandBar to the collection.
Declaration
public int Add(CommandBar cbar)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBar | cbar | The CommandBar to be added. |
Returns
| Type | Description |
|---|---|
| System.Int32 | The total number of CommandBars present in the collection. |
Contains(CommandBar)
Indicates whether the CommandBar is present.
Declaration
public bool Contains(CommandBar cbar)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBar | cbar | The CommandBar to locate in the collection. |
Returns
| Type | Description |
|---|---|
| System.Boolean | TRUE if the CommandBar is present; FALSE otherwise. |
OnClear()
Declaration
protected override void OnClear()
OnInsertComplete(Int32, Object)
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Object | value |
OnRemoveComplete(Int32, Object)
Declaration
protected override void OnRemoveComplete(int index, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Object | value |
Remove(CommandBar)
Removes the CommandBar from the collection.
Declaration
public void Remove(CommandBar cbar)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBar | cbar | The CommandBar to be removed. |