[]
IRange range = worksheet.getRange("A1");
range.setValue(true);
ICellControl control = range.getCellControl();
control.setCheckbox();
CellControlType type = control.getType();
如果区域中的所有单元格都具有相同的控件类型,则返回该类型。如果区域包含混合控件类型或不存在控件,则返回 CellControlType.None。
IRange range = worksheet.getRange("A1");
range.setValue(true);
range.getCellControl().setCheckbox();
CellControlType type = range.getCellControl().getType();
IRange range = worksheet.getRange("A1");
range.setValue(true);
range.getCellControl().setCheckbox();
CellControlType type = range.getCellControl().getType();