[]
Adds a new IButton.
Creates a button control at the specified position and size in the worksheet's control collection.
IButton AddButton(double left, double top, double width, double height)
Function AddButton(left As Double, top As Double, width As Double, height As Double) As IButton
| Type | Name | Description |
|---|---|---|
| double | left | The left margin of the button. |
| double | top | The top margin of the button. |
| double | width | The width of the button. |
| double | height | The height of the button. |
| Type | Description |
|---|---|
| IButton | The newly added IButton. |
IButton button = worksheet.Controls.AddButton(20, 20, 100, 24);
button.Text = "Submit";