[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.IControlCollection.Item

this Property

this[string]

Gets control by name.

Use this indexer to retrieve a control from the collection by its name.

Declaration
IControl this[string name] { get; }
ReadOnly Default Property Item(name As String) As IControl
Parameters
Type Name Description
string name

The name of the control to retrieve.

Examples
IButton button = worksheet.Controls.AddButton(20, 20, 100, 24);
button.Name = "submitButton";
IControl control = worksheet.Controls["submitButton"];
control.Left = 40;