menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CaptionButtonsCollection - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CaptionButtonsCollection

    Caption Buttons collection.

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

    Constructors

    CaptionButtonsCollection()

    Declaration
    public CaptionButtonsCollection()

    Properties

    Item[Int32]

    Gets /Sets the index of the caption button.

    Declaration
    public CaptionButton this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index

    The index of the caption button

    Property Value
    Type
    CaptionButton

    Item[String]

    Gets / Sets the name of the caption button.

    Declaration
    public CaptionButton this[string name] { get; set; }
    Parameters
    Type Name Description
    System.String name

    The name of the caption button.

    Property Value
    Type
    CaptionButton

    Methods

    Add(CaptionButton)

    Adds the caption button to the control.

    Declaration
    public virtual void Add(CaptionButton button)
    Parameters
    Type Name Description
    CaptionButton button

    The CaptionButton instance.

    button_TypeChanging(Object, CancelEventArgs)

    Declaration
    protected virtual void button_TypeChanging(object sender, CancelEventArgs e)
    Parameters
    Type Name Description
    System.Object sender
    System.ComponentModel.CancelEventArgs e

    Clone()

    Returns the cloned CaptionButtonsCollection.

    Declaration
    public CaptionButtonsCollection Clone()
    Returns
    Type
    CaptionButtonsCollection

    Contains(CaptionButton)

    Returns whether the CaptionButtonsCollection contains the Caption button.

    Declaration
    public bool Contains(CaptionButton button)
    Parameters
    Type Name Description
    CaptionButton button

    The Caption Button instance.

    Returns
    Type
    System.Boolean

    ContainsButtonType(CaptionButtonType)

    Declaration
    protected bool ContainsButtonType(CaptionButtonType type)
    Parameters
    Type Name Description
    CaptionButtonType type
    Returns
    Type
    System.Boolean

    ContainsName(String)

    Declaration
    protected bool ContainsName(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type
    System.Boolean

    Dispose()

    Dispose the caption button.

    Declaration
    public void Dispose()

    ExcludeCommonButtonsWith(CaptionButtonsCollection)

    Exclude the common buttons

    Declaration
    public void ExcludeCommonButtonsWith(CaptionButtonsCollection collection)
    Parameters
    Type Name Description
    CaptionButtonsCollection collection

    The CaptionButtonsCollection instance.

    GetCaptionButtonDefaultName()

    Declaration
    protected string GetCaptionButtonDefaultName()
    Returns
    Type
    System.String

    IndexOf(CaptionButton)

    Returns the index of the Caption button.

    Declaration
    public int IndexOf(CaptionButton button)
    Parameters
    Type Name Description
    CaptionButton button

    The Caption Button instance.

    Returns
    Type
    System.Int32

    Insert(Int32, CaptionButton)

    Insert the Caption button in specified index.

    Declaration
    public virtual void Insert(int index, CaptionButton button)
    Parameters
    Type Name Description
    System.Int32 index
    CaptionButton button

    The Caption Button instance.

    MergeWith(CaptionButtonsCollection, Boolean)

    Serves to merge with caption buttons collection.

    Declaration
    public void MergeWith(CaptionButtonsCollection collection, bool bCloneButtons)
    Parameters
    Type Name Description
    CaptionButtonsCollection collection

    The CaptionButtonsCollection instance.

    System.Boolean bCloneButtons

    Indicates whether the CaptionButtonsCollection are cloned.

    OnClear()

    Declaration
    protected override void OnClear()
    Overrides
    System.Collections.CollectionBase.OnClear()

    OnClearComplete()

    Declaration
    protected override void OnClearComplete()
    Overrides
    System.Collections.CollectionBase.OnClearComplete()

    OnCollectionChanged()

    Declaration
    protected void OnCollectionChanged()

    OnCollectionItemChanged()

    Declaration
    protected void OnCollectionItemChanged()

    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)

    OnRemove(Int32, Object)

    Declaration
    protected override void OnRemove(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value
    Overrides
    System.Collections.CollectionBase.OnRemove(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(CaptionButton)

    Remove the Caption button.

    Declaration
    public void Remove(CaptionButton button)
    Parameters
    Type Name Description
    CaptionButton button

    The Caption Button instance.

    Events

    CollectionChanged

    Occurs when the collection changed.

    Declaration
    public event EventHandler CollectionChanged
    Event Type
    Type
    System.EventHandler

    CollectionItemChanged

    Occurs when the Collection Item changed.

    Declaration
    public event EventHandler CollectionItemChanged
    Event Type
    Type
    System.EventHandler

    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[])
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved