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 项。

属性

名称类型访问描述
TypeForms2OleControlType读取获取 Forms 2.0 控件的类型。
Captionstring读写获取或设置控件的 Caption 属性。
Valuestring读取获取底层的 Value 属性,通常表示控件状态。
Enabledbool读取如果控件处于启用状态,则返回 true。
ChildNodesForms2OleControlCollection读取获取直接子控件的集合。
GroupNamestring读写获取或设置一个字符串,该字符串指定一组互斥的控件。
ForeColorColor读写获取或设置控件的前景颜色。
BackColorColor读写获取或设置控件的背景颜色。
Widthdouble读写获取或设置控件的宽度(以点为单位)。
Heightdouble读写获取或设置控件的高度(以点为单位)。
Namestring读写获取或设置 ActiveX 控件的名称。
IsForms2OleControlbool读取如果该控件是 Forms2OleControl,则返回 true。

方法

签名描述
CommandButtonControl()初始化 CommandButtonControl 类的新实例。

另请参阅

 中文