TextInput 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
代表一个文本型窗体域。
public interface class TextInput
[System.Runtime.InteropServices.Guid("00020927-0000-0000-C000-000000000046")]
public interface TextInput
type TextInput = interface
Public Interface TextInput
- 属性
注解
使用 FormFields (index
) (其中 index
是与文本窗体字段或索引号关联的书签名称)返回 FormField 对象。 TextInput将 属性与 FormField 对象一起使用可返回 TextInput 对象。
索引号表示窗体字段在集合中 FormFields 的位置。
Add(Range, WdFieldType)将 方法与 FormFields 对象一起使用可添加文本窗体字段。
属性
Application |
返回一个 Application 对象,该对象代表 Microsoft Word 应用程序。 |
Creator |
返回一个 32 位整数,它指示在其中创建指定的对象的应用程序。 |
Default |
返回或设置表示默认文本框内容的文本。 |
Format |
返回指定的文本框的格式的文本。 |
Parent |
返回一个对象,代表指定对象的父对象。 |
Type |
返回文字型窗体域的类型。 |
Valid |
True 表示指定的窗体字段对象是否有效复选框型窗体域。 |
Width |
返回或设置指定对象的宽度(以磅为单位)。 |
方法
Clear() |
删除指定的文字型窗体域中的文字。 |
EditType(WdTextFormFieldType, Object, Object, Object) |
为指定的文字型窗体域设置选项。 |