CommandButtonControl
Overview
CommandButtonControl is a class in Aspose.Words FOSS for .NET.
Inherits from: Forms2OleControl.
The CommandButton control runs a macro that performs an action when a user clicks it.
This class provides 1 method for working with CommandButtonControl objects in .NET programs.
Available methods include: CommandButtonControl.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: BackColor, Caption, ChildNodes, Enabled, ForeColor, GroupName, and 6 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Type | Forms2OleControlType | Read | Gets type of Forms 2.0 control. |
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 | bool | 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. |
IsForms2OleControl | bool | Read | Returns true if the control is a Forms2OleControl. |
Methods
| Signature | Description |
|---|---|
CommandButtonControl() | Initializes a new instance of CommandButtonControl class. |