[]
IControlIButton, ICheckBox, IGroupBox, ILabel, IOptionButtonUse this interface to work with text content shared by form controls such as IButton, ICheckBox, IGroupBox, ILabel, and IOptionButton. It provides members for reading or changing the displayed text and for controlling whether that text is locked.
IContentControl control = worksheet.getControls().addLabel(20, 20, 120, 24);
control.setText("Name");
control.setLockedText(true);
String text = control.getText();
boolean lockedText = control.getLockedText();
booleangetText()voidsetLockedText(boolean value) voidbringToFront, 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, setWidthUse this method to determine whether the displayed text of the control is currently locked.
IContentControl control = worksheet.getControls().addLabel(20, 20, 120, 24);
control.setText("Name");
control.setLockedText(true);
boolean lockedText = control.getLockedText();
true if the control text is locked; otherwise, false.Use this method to set whether the displayed text of the control is currently locked.
IContentControl control = worksheet.getControls().addLabel(20, 20, 120, 24);
control.setText("Name");
control.setLockedText(true);
value - true if the control text is locked; otherwise, false.Use this method to read the current text shown by the control.
IContentControl control = worksheet.getControls().addLabel(20, 20, 120, 24);
control.setText("Name");
String text = control.getText();
Use this method to change the current text shown by the control.
IContentControl control = worksheet.getControls().addLabel(20, 20, 120, 24);
control.setText("Name");
value - The text displayed by the control.