This documentation is archived and is not being maintained.

ControlCollection Class

Represents a collection of controls.

Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in

public sealed class ControlCollection : CollectionBase, IDisposable

The Add<control> methods enable you to add individual controls to the ControlCollection. You can use the Remove method to remove controls from the ControlCollection. You can determine if a control is a member of the collection by passing the control or its name to the Contains method. You can get the index value of the location of the control in the collection by passing the control or its name into the IndexOf method. You can get the control by passing the index or name of the control to the Item property in Visual Basic or Indexer in C#.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.