[]
IControlIButton, ICheckBox, IDropDown, IGroupBox, ILabel, IListBox, IOptionButton, IScrollBar, ISpinnerThis interface extends IControl with typed members for duplicating a form control or relocating it by copy or cut operations. The generic type parameter preserves the specific control interface in the returned value.
IButton button = worksheet.getControls().addButton(20, 20, 100, 24);
IControlT<IButton> control = button;
IButton copiedButton = control.copy(140, 20);
IButton movedButton = control.cut(20, 60);
IButton duplicatedButton = control.duplicate();
bringToFront, delete, getBottomRightCell, getEnabled, getFormControlType, getHeight, getLeft, getLocked, getName, getParent, getPlacement, getPrintObject, getShapeRange, getTop, getTopLeftCell, getVisible, getWidth, getZOrder, sendToBack, setEnabled, setHeight, setLeft, setLocked, setName, setPlacement, setPrintObject, setTop, setVisible, setWidthCreates a new control at the specified left and top position and returns the copied control as the same concrete control type.
IButton button = worksheet.getControls().addButton(20, 20, 100, 24);
button.setText("Submit");
IButton copiedButton = button.copy(140, 20);
copiedButton.setText("Submit Copy");
left - The left margin of the copied control.top - The top margin of the copied control.Moves the current control to the specified left and top position and returns the same control as the concrete control type.
IButton button = worksheet.getControls().addButton(20, 20, 100, 24);
button.setText("Submit");
IButton movedButton = button.cut(140, 60);
movedButton.setText("Moved Submit");
left - The left position of the destination control.top - The top position of the destination control.Creates a new control of the same type as this control and returns a reference to the copied control.
IButton button = worksheet.getControls().addButton(20, 20, 100, 24);
button.setText("Submit");
IButton duplicatedButton = button.duplicate();
duplicatedButton.setText("Submit Copy");