语法
表达式.TemplateName
表达式 一个代表 Presentation 对象的变量。
返回值String
说明
返回的字符串包含 MS-DOS 文件扩展名(对于已注册的文件类型),但不包括完整路径。
示例
以下示例中,如果设计模板“Professional.pot”尚未应用于演示文稿“Pres1.ppt”,则将该模板应用于该演示文稿。
let tion = Presentations.Item("Pres1.ppt") if(tion.TemplateName != "Professional.pot") { tion.ApplyTemplate("C:\\program files\\office\\templates\\presentation designs\\Professional.pot") }