[]
        
(Showing Draft Content)

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

Copy Method

Copy(double, double)

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.

Declaration
T Copy(double left, double top)
Function Copy(left As Double, top As Double) As T
Parameters
Type Name Description
double left

The left margin of the copied control.

double top

The top margin of the copied control.

Returns
Type Description
T

The copied control.

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