Class ControlsCollection
Inheritance
System.Object
System.Collections.CollectionBase
ControlsCollection
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.OnClearComplete()
System.Collections.CollectionBase.OnInsert(System.Int32, System.Object)
System.Collections.CollectionBase.OnRemove(System.Int32, System.Object)
System.Collections.CollectionBase.OnSet(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.Collections
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class ControlsCollection : CollectionBase, IList, ICollection, IEnumerable
Constructors
ControlsCollection(Control)
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. |
ControlsCollection(Control, ConfigureControlEventHandler)
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
Item[Int32]
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 |
Parent
Reference on parent control/container.
Declaration
protected Control Parent { get; }
Property Value
Type |
---|
System.Windows.Forms.Control |
Methods
Add(Control)
Add Control object to collection.
Declaration
public int Add(Control control)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control |
Returns
Type |
---|
System.Int32 |
AddRange(Control[])
Declaration
public void AddRange(Control[] controls)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control[] | controls |
ConfigureItem(Control)
Declaration
protected virtual void ConfigureItem(Control control)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control |
Contains(Control)
Declaration
public bool Contains(Control control)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control |
Returns
Type |
---|
System.Boolean |
Insert(Int32, Control)
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 |
OnClear()
Declaration
protected override void OnClear()
Overrides
System.Collections.CollectionBase.OnClear()
OnCollectionChanged(CollectionChangeEventArgs)
Occurs when collection changed.
Declaration
protected virtual void OnCollectionChanged(CollectionChangeEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.CollectionChangeEventArgs | e |
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)
OnSetComplete(Int32, Object, Object)
Declaration
protected override void OnSetComplete(int index, object oldValue, object newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Object | oldValue | |
System.Object | newValue |
Overrides
System.Collections.CollectionBase.OnSetComplete(System.Int32, System.Object, System.Object)
Remove(Control)
Removes control from collection.
Declaration
public void Remove(Control control)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | control |
Events
CollectionChanged
Declaration
public event CollectionChangeEventHandler CollectionChanged
Event Type
Type |
---|
System.ComponentModel.CollectionChangeEventHandler |
ConfigureControl
Declaration
public event ConfigureControlEventHandler ConfigureControl
Event Type
Type |
---|
ConfigureControlEventHandler |
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable