如果为
True,则禁用
DisableFeaturesIntroducedAfter
属性中指定的版本之后的所有功能。默认值为
False。
Boolean 类型,可读写。
语法
表达式.DisableFeatures
表达式 一个代表 Document 对象的变量。
说明
DisableFeatures 属性只影响设置属性的文档。如果计划与使用 WPS 较早版本的用户共享文档,请使用该属性,这样就无需禁用其 WPS 版本不支持的文档功能。
示例
本示例在当前文档中禁用在 WPS for Windows 、7.0 和 7.0a 版本之后添加的功能,全局默认设置保持不变。
示例代码 |
function FeaturesDisable() {
//Checks whether features are disabled
if(ActiveDocument.DisableFeatures == true) {
//If they are, disables all features after WPS for Windows
ActiveDocument.DisableFeaturesIntroducedAfter = wd70
}
else {
//If not, turns on the disable features option and disables
//all features introduced after WPS for Windows
ActiveDocument.DisableFeatures = true
ActiveDocument.DisableFeaturesIntroducedAfter = wd70
}
}
|