[]
Copies this control to the default destination position.
Creates a new control of the same type as this control and returns a reference to the copied control.
T Duplicate()
Function Duplicate() As T
| Type | Description |
|---|---|
| T | The copied control. |
IButton button = worksheet.Controls.AddButton(20, 20, 100, 24);
button.Text = "Submit";
IButton duplicatedButton = button.Duplicate();
duplicatedButton.Text = "Submit Copy";