[]
Copy this control to the destination position.
Creates a new control at the specified left and top position and returns the copied control as the same concrete control type.
T Copy(double left, double top)
Function Copy(left As Double, top As Double) As T
| Type | Name | Description |
|---|---|---|
| double | left | The left margin of the copied control. |
| double | top | The top margin of the copied control. |
| Type | Description |
|---|---|
| T | The copied control. |
IButton button = worksheet.Controls.AddButton(20, 20, 100, 24);
button.Text = "Submit";
IButton copiedButton = button.Copy(140, 20);
copiedButton.Text = "Submit Copy";