Class CaptionButtonsCollection
Caption Buttons collection.
Inheritance
System.Object
CaptionButtonsCollection
Assembly: Syncfusion.Tools.Windows.dll
public class CaptionButtonsCollection : CollectionBase
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()
Declaration
protected override void 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 |
|
Declaration
protected override void OnRemove(int index, object value)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
| System.Object |
value |
|
Declaration
protected override void OnRemoveComplete(int index, object value)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
| System.Object |
value |
|
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