OptionButtonControl

OptionButtonControl

Overview

OptionButtonControl is a class in Aspose.Words FOSS for Java. Inherits from: MorphDataControl.

The OptionButton control enables a single choice in a limited set of mutually exclusive choices.

Edition status of its 35 listed members (a property and its accessor methods are listed separately, overloads once): 35 not yet exercised by a verified example.

This class declares 22 methods for OptionButtonControl objects in Java programs. Available methods include: getBackColor, getCaption, getChildNodes, getEnabled, getForeColor, getGroupName, getHeight, getName, getSelected, getType, getValue, getWidth, and 10 additional methods. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: backColor, caption, childNodes, enabled, foreColor, forms2OleControl, and 7 more.

Properties

NameTypeAccessDescription
typeintReadGets type of Forms 2.0 control.
selectedbooleanRead/WriteGets or sets a boolean value indicating either this OptionButtonControl is selected or not.
captionStringRead/WriteGets or sets a Caption property of the control.
valueStringReadGets underlying Value property which often represents control state.
enabledbooleanReadReturns true if control is in enabled state.
childNodesForms2OleControlCollectionReadGets collection of immediate child controls.
groupNameStringRead/WriteGets or sets a string that specifies a group of mutually exclusive controls.
foreColorColorRead/WriteGets or sets a foreground color of the control.
backColorColorRead/WriteGets or sets a background color of the control.
widthdoubleRead/WriteGets or sets a width of the control in points.
heightdoubleRead/WriteGets or sets a height of the control in points.
nameStringRead/WriteGets or sets name of the ActiveX control.
forms2OleControlbooleanReadReturns true if the control is a Forms2OleControl.

Methods

SignatureDescription
getType() → intGets type of Forms 2.0 control.
getSelected() → booleanGets or sets a boolean value indicating either this OptionButtonControl is selected or not.
setSelected(value: boolean)Sets the selected value.
getCaption() → StringGets or sets a Caption property of the control.
setCaption(value: String)Sets the caption value.
getValue() → StringGets underlying Value property which often represents control state.
getEnabled() → booleanReturns true if control is in enabled state.
getChildNodes() → Forms2OleControlCollectionGets collection of immediate child controls.
getGroupName() → StringGets or sets a string that specifies a group of mutually exclusive controls.
setGroupName(value: String)Sets the group name value.
getForeColor() → ColorGets or sets a foreground color of the control.
setForeColor(value: Color)Sets the fore color value.
getBackColor() → ColorGets or sets a background color of the control.
setBackColor(value: Color)Sets the back color value.
getWidth() → doubleGets or sets a width of the control in points.
setWidth(value: double)Sets the width value.
getHeight() → doubleGets or sets a height of the control in points.
setHeight(value: double)Sets the height value.
getName() → StringGets or sets name of the ActiveX control.
setName(value: String)Sets the name value.
isForms2OleControl() → booleanReturns true if the control is a Forms2OleControl.
saveForUser(stream: Stream, attrSource: IShapeAttrSource)Saves the embedded object data in a way that makes it a valid standalone file.

See Also