Interface IOptionButton
- All Superinterfaces:
ICellLinkControl,ICellLinkControlT<Boolean>,IContentControl,IControl,IControlT<IOptionButton>
public interface IOptionButton
extends IControlT<IOptionButton>, IContentControl, ICellLinkControlT<Boolean>
选项按钮控件。
-
Method Summary
Modifier and TypeMethodDescription获取包含选项按钮的第一个分组框。boolean获取IOptionButton是否被选中。voidsetIsChecked(boolean value) 设置IOptionButton是否被选中。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()获取包含选项按钮的第一个分组框。同一分组框中的选项按钮属于同一组。
如果该值为
null,则选项按钮处于默认组中。同一组的选项按钮将共享
ICellLinkControl.LinkedCell属性的值。它们还会影响同一组中其他选项按钮的选择状态。
- Returns:
- 包含选项按钮的第一个分组框。如果选项按钮位于默认组中,则该值为
null。 - API Note:
- 维护此属性的状态较为沉重。我们不推荐在同一个工作表中放置太多的分组框和选项按钮。
-
getIsChecked
boolean getIsChecked()获取IOptionButton是否被选中。- Returns:
False- 未选中,true- 已选中。
-
setIsChecked
void setIsChecked(boolean value) 设置IOptionButton是否被选中。- Parameters:
value-False- 未选中,true- 选中。
-