WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CommandBarController.CommandBarsCollection

    Show / Hide Table of Contents

    Class CommandBarController.CommandBarsCollection

    Represents a collection of CommandBar objects.

    Inheritance
    System.Object
    System.Collections.CollectionBase
    CommandBarController.CommandBarsCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    Inherited Members
    System.Collections.CollectionBase.Clear()
    System.Collections.CollectionBase.RemoveAt(System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
    System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
    System.Collections.CollectionBase.GetEnumerator()
    System.Collections.CollectionBase.OnSet(System.Int32, System.Object, System.Object)
    System.Collections.CollectionBase.OnInsert(System.Int32, System.Object)
    System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)
    System.Collections.CollectionBase.OnValidate(System.Object)
    System.Collections.CollectionBase.OnSetComplete(System.Int32, System.Object, System.Object)
    System.Collections.CollectionBase.OnClearComplete()
    System.Collections.CollectionBase.InnerList
    System.Collections.CollectionBase.List
    System.Collections.CollectionBase.Capacity
    System.Collections.CollectionBase.Count
    System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
    System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
    System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
    System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
    System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public sealed class CommandBarsCollection : CollectionBase, IList, ICollection, IEnumerable

    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()
    Overrides
    System.Collections.CollectionBase.OnClear()

    OnInsertComplete(Int32, Object)

    Declaration
    protected override void OnInsertComplete(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value
    Overrides
    System.Collections.CollectionBase.OnInsertComplete(System.Int32, System.Object)

    OnRemoveComplete(Int32, Object)

    Declaration
    protected override void OnRemoveComplete(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value
    Overrides
    System.Collections.CollectionBase.OnRemoveComplete(System.Int32, System.Object)

    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.

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable

    Extension Methods

    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    FunctionalExtensions.MoveTo(IList, Int32, Int32)
    QueryableExtensions.OfQueryable(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable, Type)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable, Type, List<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany(IEnumerable, Type, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Func<String, Expression>, String[])

    See Also

    CommandBars
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved