[]
        
(Showing Draft Content)

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

Cut Method

Cut(double, double)

Cut this control and paste to the destination position.

Moves the current control to the specified left and top position and returns the same control as the concrete control type.

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

The left position of the destination control.

double top

The top position of the destination control.

Returns
Type Description
T

The moved control.

Examples
IButton button = worksheet.Controls.AddButton(20, 20, 100, 24);
button.Text = "Submit";
IButton movedButton = button.Cut(140, 60);
movedButton.Text = "Moved Submit";