CommandButtonControl

CommandButtonControl

Overview

CommandButtonControl is a class in Aspose.Words FOSS for Java. Inherits from: Forms2OleControl.

The CommandButton control runs a macro that performs an action when a user clicks it.

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

This class declares 21 methods for CommandButtonControl objects in Java programs. Available methods include: CommandButtonControl, getBackColor, getCaption, getChildNodes, getEnabled, getForeColor, getGroupName, getHeight, getName, getType, getValue, getWidth, and 9 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 6 more.

Properties

NameTypeAccessDescription
typeintReadGets type of Forms 2.0 control.
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
CommandButtonControl()Initializes a new instance of CommandButtonControl class.
getType() → intGets type of Forms 2.0 control.
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