[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Forms.IControl-1.Duplicate

Duplicate Method

Duplicate()

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.

Declaration
T Duplicate()
Function Duplicate() As T
Returns
Type Description
T

The copied control.

Examples
IButton button = worksheet.Controls.AddButton(20, 20, 100, 24);
button.Text = "Submit";
IButton duplicatedButton = button.Duplicate();
duplicatedButton.Text = "Submit Copy";