[]
Gets control by name.
Use this indexer to retrieve a control from the collection by its name.
IControl this[string name] { get; }
ReadOnly Default Property Item(name As String) As IControl
| Type | Name | Description |
|---|---|---|
| string | name | The name of the control to retrieve. |
IButton button = worksheet.Controls.AddButton(20, 20, 100, 24);
button.Name = "submitButton";
IControl control = worksheet.Controls["submitButton"];
control.Left = 40;