返回指定文本框的文字格式。
String 类型,只读。
语法
表达式.Format
表达式 必选。一个代表 TextInput 对象的变量。
示例
本示例显示活动文档中第一个域中的文本格式。
| 示例代码 |
if(ActiveDocument.FormFields.Item(1).Type == wdFieldFormTextInput){
MsgBox(ActiveDocument.FormFields.Item(1).TextInput.Format)
}
else{
MsgBox("First field is not a text form field")
}
|