Gets the collection of managed controls that are contained on the worksheet.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
A worksheet in an Office solution can contain Windows Forms controls and host controls. For more information, see Controls on Office Documents.
To manage the controls on a worksheet at run time, use the methods and properties of the ControlCollection object returned by the property. For more information, see Adding Controls to Office Documents at Run Time
The following code example uses the Button to the current worksheet.property to add a
This example is for an application-level add-in.