WPS 基础接口 > 文字 API 参考 > Application > 属性 > Application.NormalTemplate 属性
返回一个 Template 对象,该对象代表 Normal 模板。

语法

表达式.NormalTemplate

表达式   一个代表 Application 对象的变量。

示例

如果 AutoTextEntries 集合中包含一个名为“Test”的“自动图文集”词条,则以下示例从 Normal 模板插入该词条。

示例代码
for(let i = 1; i <= NormalTemplate.AutoTextEntries.Count; i++) {
    let entry = NormalTemplate.AutoTextEntries.Item(i)
    if(entry.Name == "Test"){
        entry.Insert(Selection.Range)
    }
}

如果修改了 Normal 模板,本示例将保存该模板。

示例代码
if(NormalTemplate.Saved == false){
    NormalTemplate.Save()
}

refer to in code normal.dot


请参阅