ApiComplexForm
表示 ApiComplexForm 类。
方法
| 方法 | 返回值 | 描述 |
|---|---|---|
| Add | boolean | 将给定表单的文本内容追加到当前复合表单的末尾。 |
| Clear | boolean | 清除当前表单。 |
| ClearContent | boolean | 清除当前复合表单的所有内容,将其重置为占位符状态。 |
| Copy | ApiForm | 复制当前表单(如果存在形状,则连同形状一起复制)。 |
| Delete | boolean | 删除表单及其内容。如果 keepContent 为 true,则不删除内容。 |
| GetBackgroundColor | ApiColor | 返回当前表单的背景颜色。 |
| GetBorderColor | ApiColor | 返回当前表单的边框颜色。 |
| GetClassType | "form" | 返回 ApiComplexForm 类的类型。 |
| GetFormKey | string | 返回当前表单的键。 |
| GetFormType | FormType | 返回当前表单的类型。 |
| GetInternalId | string | 返回当前表单的内部 ID。 |
| GetLock | boolean | 返回当前表单的锁定状态。 |
| GetPlaceholderText | string | 返回当前表单的占位符文本。 |
| GetRole | string | 返回当前表单的角色。 |
| GetSubForms | ApiForm[] | 返回子表单的有序列表。 |
| GetTag | string | 返回当前表单的标签属性。 |
| GetText | string | 返回当前表单中的文本。 |
| GetTextPr | ApiTextPr | 返回当前表单的文本属性。如果该表单类型支持则使用 |
| GetTipText | string | 返回当前表单的提示文本。 |
| GetWrapperShape | ApiShape | 返回放置表单的形状,用于控制固定大小表单框架的位置和大小。对于内联表单将返回 null 值。 |
| IsFixed | boolean | 检查当前表单是否为固定大小。 |
| IsRequired | boolean | 检查当前表单是否为必填项。 |
| MoveCursorOutside | boolean | 将光标放置在当前表单之前/之后。 |
| SetBackgroundColor | boolean | 设置当前表单的背景颜色。 |
| SetBorderColor | boolean | 设置当前表单的边框颜色。 |
| SetFormKey | boolean | 为当前表单设置键。 |
| SetLock | boolean | 设置当前表单的锁定状态。 |
| SetPlaceholderText | boolean | 设置当前表单的占位符文本。不能设置为复选框或单选按钮。 |
| SetRequired | boolean | 指定当前表单是否为必填项。 |
| SetRole | boolean | 为当前表单设置角色。 |
| SetTag | boolean | 为当前表单设置标签属性。 |
| SetTextPr | boolean | 设置当前表单的文本属性。如果该表单类型支持则使用 |
| SetTipText | boolean | 设置当前表单的提示文本。 |
| ToFixed | boolean | 将当前表单转换为固定大小的表单。 |
| ToInline | boolean | 将当前表单转换为内联表单。图片表单无法转换为内联表单,它始终是固定大小的对象。 |