[]
ICellLinkControl, ICellLinkControlT<Boolean>, IContentControl, IControl, IControlT<ICheckBox>A check box control can display text and store a three-state selection value: checked ( true), unchecked ( false), or mixed ( null). It also supports linking its value to a worksheet cell through ICellLinkControlT.
ICheckBox checkBox = worksheet.getControls().addCheckBox(20, 20, 90, 18);
checkBox.setText("Accept");
checkBox.setLinkedCell(worksheet.getRange("A1"));
ICheckBox is checked.voidsetIsChecked(Boolean value) ICheckBox is checked.getDisplay3DShading, getLinkedCell, setDisplay3DShading, setLinkedCellgetValue, setValuegetLockedText, getText, setLockedText, setTextbringToFront, 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, setWidthICheckBox is checked.Returns the current three-state value of the check box.
ICheckBox checkBox = worksheet.getControls().addCheckBox(20, 20, 90, 18);
checkBox.setIsChecked(true);
Boolean checked = checkBox.getIsChecked();
false - Unchecked, true - Checked, null - MixedICheckBox is checked.Sets the current three-state value of the check box.
ICheckBox checkBox = worksheet.getControls().addCheckBox(20, 20, 90, 18);
checkBox.setIsChecked(true);
value - false - Unchecked, true - Checked, null - Mixed