CommandButtonControl
CommandButtonControl
概述
CommandButtonControl 是 Aspose.Words FOSS 中用于 .NET 的类。继承自:Forms2OleControl。
当用户点击时,CommandButton 控件会运行一个执行操作的宏。
此类提供 1 个用于在 .NET 程序中处理 CommandButtonControl 对象的方法。可用的方法包括:CommandButtonControl。在安装了 Aspose.Words FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:BackColor、Caption、ChildNodes、Enabled、ForeColor、GroupName,以及另外 6 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Type | Forms2OleControlType | 读取 | 获取 Forms 2.0 控件的类型。 |
Caption | string | 读写 | 获取或设置控件的 Caption 属性。 |
Value | string | 读取 | 获取底层的 Value 属性,通常表示控件状态。 |
Enabled | bool | 读取 | 如果控件处于启用状态,则返回 true。 |
ChildNodes | Forms2OleControlCollection | 读取 | 获取直接子控件的集合。 |
GroupName | string | 读写 | 获取或设置一个字符串,该字符串指定一组互斥的控件。 |
ForeColor | Color | 读写 | 获取或设置控件的前景颜色。 |
BackColor | Color | 读写 | 获取或设置控件的背景颜色。 |
Width | double | 读写 | 获取或设置控件的宽度(以点为单位)。 |
Height | double | 读写 | 获取或设置控件的高度(以点为单位)。 |
Name | string | 读写 | 获取或设置 ActiveX 控件的名称。 |
IsForms2OleControl | bool | 读取 | 如果该控件是 Forms2OleControl,则返回 true。 |
方法
| 签名 | 描述 |
|---|---|
CommandButtonControl() | 初始化 CommandButtonControl 类的新实例。 |