CheckBoxControl
Overview
CheckBoxControl is a class in Aspose.Words FOSS for Java.
Inherits from: MorphDataControl.
The CheckBox control toggles a value.
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 CheckBoxControl objects in Java programs.
Available methods include: getBackColor, getCaption, getChecked, getChildNodes, getEnabled, getForeColor, getGroupName, getHeight, getName, 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, checked, childNodes, enabled, foreColor, and 7 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
type | int | Read | Gets type of Forms 2.0 control. |
checked | boolean | Read/Write | Gets or sets a boolean value indicating either this CheckBoxControl is checked or not. |
caption | String | Read/Write | Gets or sets a Caption property of the control. |
value | String | Read | Gets underlying Value property which often represents control state. |
enabled | boolean | Read | Returns true if control is in enabled state. |
childNodes | Forms2OleControlCollection | Read | Gets collection of immediate child controls. |
groupName | String | Read/Write | Gets or sets a string that specifies a group of mutually exclusive controls. |
foreColor | Color | Read/Write | Gets or sets a foreground color of the control. |
backColor | Color | Read/Write | Gets or sets a background color of the control. |
width | double | Read/Write | Gets or sets a width of the control in points. |
height | double | Read/Write | Gets or sets a height of the control in points. |
name | String | Read/Write | Gets or sets name of the ActiveX control. |
forms2OleControl | boolean | Read | Returns true if the control is a Forms2OleControl. |
Methods
| Signature | Description |
|---|---|
getType() → int | Gets type of Forms 2.0 control. |
getChecked() → boolean | Gets or sets a boolean value indicating either this CheckBoxControl is checked or not. |
setChecked(value: boolean) | Sets the checked value. |
getCaption() → String | Gets or sets a Caption property of the control. |
setCaption(value: String) | Sets the caption value. |
getValue() → String | Gets underlying Value property which often represents control state. |
getEnabled() → boolean | Returns true if control is in enabled state. |
getChildNodes() → Forms2OleControlCollection | Gets collection of immediate child controls. |
getGroupName() → String | Gets or sets a string that specifies a group of mutually exclusive controls. |
setGroupName(value: String) | Sets the group name value. |
getForeColor() → Color | Gets or sets a foreground color of the control. |
setForeColor(value: Color) | Sets the fore color value. |
getBackColor() → Color | Gets or sets a background color of the control. |
setBackColor(value: Color) | Sets the back color value. |
getWidth() → double | Gets or sets a width of the control in points. |
setWidth(value: double) | Sets the width value. |
getHeight() → double | Gets or sets a height of the control in points. |
setHeight(value: double) | Sets the height value. |
getName() → String | Gets or sets name of the ActiveX control. |
setName(value: String) | Sets the name value. |
isForms2OleControl() → boolean | Returns 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. |