返回或设置 WPS 在自动设置指定文档的格式时使用的格式类型。
WdDocumentKind
类型,可读写。
语法
表达式.Kind
表达式 必选。一个代表 Document 对象的变量。
示例
本示例询问用户活动文档是否为电子邮件。如果是,则将此文档的格式设置为电子邮件格式。
| 示例代码 |
let response = MsgBox("Is this document an e-mail message?", vbYesNo)
if(response == vbYes) {
ActiveDocument.Kind = wdDocumentEmail
ActiveDocument.Content.AutoFormat()
}
|