Interface IOptionButton
- All Superinterfaces:
ICellLinkControl,ICellLinkControlT<Boolean>,IContentControl,IControl,IControlT<IOptionButton>
public interface IOptionButton
extends IControlT<IOptionButton>, IContentControl, ICellLinkControlT<Boolean>
The option button control.
-
Method Summary
Modifier and TypeMethodDescriptionGets the first group box that contains the option button.booleanGets whether theIOptionButtonis checked.voidsetIsChecked(boolean value) Sets whether theIOptionButtonis checked.Methods inherited from interface com.grapecity.documents.excel.forms.ICellLinkControl
getDisplay3DShading, getLinkedCell, setDisplay3DShading, setLinkedCellMethods inherited from interface com.grapecity.documents.excel.forms.ICellLinkControlT
getValue, setValueMethods inherited from interface com.grapecity.documents.excel.forms.IContentControl
getLockedText, getText, setLockedText, setTextMethods inherited from interface com.grapecity.documents.excel.forms.IControl
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, setWidth
-
Method Details
-
getGroupBox
IGroupBox getGroupBox()Gets the first group box that contains the option button.Option buttons in the same group box are in the same group.
If the value is
null, the option button is in the default group.Option buttons in the same group will share the value of
ICellLinkControl.LinkedCellproperty.They will also affect the selection state of other option buttons in the same group.
- Returns:
- The first group box that contains the option button.The value is
nullif the option button is in the default group. - API Note:
- It's heavy to maintain the state of this property.We don't recommend putting too many group boxes and option buttons in the same worksheet.
-
getIsChecked
boolean getIsChecked()Gets whether theIOptionButtonis checked.- Returns:
False- Unchecked,true- Checked.
-
setIsChecked
void setIsChecked(boolean value) Sets whether theIOptionButtonis checked.- Parameters:
value-False- Unchecked,true- Checked.
-