Class ControlsCollection
Inheritance
System.Object
ControlsCollection
Assembly: Syncfusion.Shared.Base.dll
public class ControlsCollection : CollectionBase
Constructors
Initializes new instance of ControlsCollectionBase class
Declaration
public ControlsCollection(Control parent)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Control |
parent |
Reference on parent control. Can not be NULL.
|
Initializes new instance of ControlsCollectionBase class
Declaration
public ControlsCollection(Control parent, ConfigureControlEventHandler eventHandler)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Control |
parent |
Reference on parent control. Can not be NULL.
|
| ConfigureControlEventHandler |
eventHandler |
Attach event handler to ConfigureControl event on initialize.
|
Properties
Typed version of indexer.
Declaration
public Control this[int index] { get; set; }
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Property Value
| Type |
| System.Windows.Forms.Control |
Reference on parent control/container.
Declaration
protected Control Parent { get; }
Property Value
| Type |
| System.Windows.Forms.Control |
Methods
Add Control object to collection.
Declaration
public int Add(Control control)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Control |
control |
|
Returns
Declaration
public void add_ConfigureControl(ConfigureControlEventHandler value)
Parameters
Declaration
public void AddRange(Control[] controls)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Control[] |
controls |
|
Declaration
protected virtual void ConfigureItem(Control control)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Control |
control |
|
Declaration
public bool Contains(Control control)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Control |
control |
|
Returns
Insert control in position with index value is index.
Declaration
public void Insert(int index, Control control)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
| System.Windows.Forms.Control |
control |
|
Declaration
protected override void OnClear()
Occurs when collection changed.
Declaration
protected virtual void OnCollectionChanged(CollectionChangeEventArgs e)
Parameters
| Type |
Name |
Description |
| System.ComponentModel.CollectionChangeEventArgs |
e |
|
Declaration
protected override void OnInsertComplete(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 |
|
Declaration
protected override void OnSetComplete(int index, object oldValue, object newValue)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
| System.Object |
oldValue |
|
| System.Object |
newValue |
|
Removes control from collection.
Declaration
public void Remove(Control control)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Control |
control |
|
Declaration
public void remove_ConfigureControl(ConfigureControlEventHandler value)
Parameters
Events
Declaration
public event CollectionChangeEventHandler CollectionChanged
Event Type
| Type |
| System.ComponentModel.CollectionChangeEventHandler |
Declaration
public event ConfigureControlEventHandler ConfigureControl
Event Type