ControlCollection

ControlCollection class

A collection of ActiveX controls.

public class ControlCollection : IControlCollection

Properties

NameDescription
Count { get; }Returns a number of objects in the collection. Read-only Int32.
IsSynchronized { get; }Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only Boolean.
Item { get; }Returns a control at the specified position.
SyncRoot { get; }Returns a synchronization root. Read-only Object.

Methods

NameDescription
AddControl(ControlType, float, float, float, float)Creates and adds a new control to the collection.
Clear()Removes all controls from the collection.
CopyTo(Array, int)Copies the entire collection to the specified array.
GetEnumerator()Returns an enumerator that iterates through the collection.
Remove(IControl)Removes an ActiveX control from the collection.
RemoveAt(int)Removes an ActiveX control stored at specified position from the collection.

See Also