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()
Assembly: Syncfusion.Tools.Windows.dll
public class CaptionButtonsCollection : CollectionBase, IList, ICollection, IEnumerable
Constructors
Declaration
public CaptionButtonsCollection()
Properties
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
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
Methods
Adds the caption button to the control.
Declaration
public virtual void Add(CaptionButton button)
Parameters
Type |
Name |
Description |
CaptionButton |
button |
The CaptionButton instance.
|
Declaration
protected virtual void button_TypeChanging(object sender, CancelEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.ComponentModel.CancelEventArgs |
e |
|
Returns the cloned CaptionButtonsCollection.
Declaration
public CaptionButtonsCollection Clone()
Returns
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
Declaration
protected bool ContainsButtonType(CaptionButtonType type)
Parameters
Returns
Declaration
protected bool ContainsName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Dispose the caption button.
Declaration
Exclude the common buttons
Declaration
public void ExcludeCommonButtonsWith(CaptionButtonsCollection collection)
Parameters
Declaration
protected string GetCaptionButtonDefaultName()
Returns
Returns the index of the Caption button.
Declaration
public int IndexOf(CaptionButton button)
Parameters
Type |
Name |
Description |
CaptionButton |
button |
The Caption Button instance.
|
Returns
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.
|
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.
|
Declaration
protected override void OnClear()
Overrides
System.Collections.CollectionBase.OnClear()
Declaration
protected override void OnClearComplete()
Overrides
System.Collections.CollectionBase.OnClearComplete()
Declaration
protected void OnCollectionChanged()
Declaration
protected void OnCollectionItemChanged()
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)
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)
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 the Caption button.
Declaration
public void Remove(CaptionButton button)
Parameters
Type |
Name |
Description |
CaptionButton |
button |
The Caption Button instance.
|
Events
Occurs when the collection changed.
Declaration
public event EventHandler CollectionChanged
Event Type
Occurs when the Collection Item changed.
Declaration
public event EventHandler CollectionItemChanged
Event Type
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Extension Methods