主要内容

本页采用了机器翻译。点击此处可查看最新英文版本。

mlreportgen.ppt.Presentation.createTemplate

类: mlreportgen.ppt.Presentation
命名空间: mlreportgen.ppt

创建 PPT API 默认演示文稿模板的副本

自 R2021a 起

语法

templatePath = mlreportgen.ppt.Presentation.createTemplate(path)

说明

templatePath = mlreportgen.ppt.Presentation.createTemplate(path) 在指定位置创建 PPT API 默认演示文稿模板的副本,并返回新模板的完整路径。

输入参数

全部展开

新模板的路径和文件名,指定为字符向量或字符串标量。.pptx 文件扩展名是可选的。

输出参量

全部展开

模板副本的路径和文件名,以字符向量形式返回

属性

Statictrue

要了解方法的属性,请参阅方法属性

示例

全部展开

在当前文件夹中创建 PPT API 模板的副本。

templatePath = mlreportgen.ppt.Presentation.createTemplate(...
    "MyTemplate.pptx");

版本历史记录

在 R2021a 中推出