IPresentation
概述
IPresentation 是 Aspose.Slides FOSS 中用于 .NET 的类。继承自:IPresentationComponent。
表示一个演示文稿。
此类提供 9 个用于在 .NET 程序中处理 IPresentation 对象的方法。可用的方法包括:Save。在安装了 Aspose.Slides FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:AsIPresentationComponent、CommentAuthors、CurrentDateTime、DocumentProperties、FirstSlideNumber、Images,以及另外 7 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Presentation | IPresentation? | 读取 | 获取演示文稿。 |
CurrentDateTime | DateTime | 读写 | 获取或设置用于替换 datetime 字段内容的日期和时间。 |
Slides | ISlideCollection | 读取 | 获取演示文稿中定义的所有幻灯片的集合。 |
NotesSize | INotesSize | 读取 | 获取此演示文稿的备注幻灯片大小对象。 |
LayoutSlides | IGlobalLayoutSlideCollection | 读取 | 获取演示文稿中定义的所有布局幻灯片的集合。 |
Masters | IMasterSlideCollection | 读取 | 获取演示文稿中定义的所有母版幻灯片的集合。 |
Sections | ISectionCollection | 读取 | 获取演示文稿中所有章节的集合。 |
CommentAuthors | ICommentAuthorCollection | 读取 | 获取评论作者的集合。 |
DocumentProperties | IDocumentProperties | 读取 | 获取演示文稿的文档属性(元数据)。 |
Images | IImageCollection | 读取 | 获取演示文稿中嵌入的所有图像的集合。 |
SourceFormat | SourceFormat | 读取 | 获取演示文稿加载自的格式。 |
FirstSlideNumber | int | 读写 | 获取或设置演示文稿中的第一张幻灯片编号。 |
AsIPresentationComponent | IPresentationComponent | 读取 | 返回此实例作为一个 IPresentationComponent。 |
方法
| 签名 | 描述 |
|---|---|
Save(fname: string, format: SaveFormat) | 将演示文稿保存为指定格式的文件。 |
Save(stream: Stream, format: SaveFormat) | 将演示文稿保存为指定格式的流。 |
Save(fname: string, format: SaveFormat, options: ISaveOptions) | 将演示文稿保存为指定格式和选项的文件。 |
Save(stream: Stream, format: SaveFormat, options: ISaveOptions) | 将演示文稿保存为指定格式和选项的流。 |
Save(fname: string, slides: int[], format: SaveFormat) | 将特定幻灯片保存为指定格式的文件。 |
Save(fname: string, slides: int[], format: SaveFormat, options: ISaveOptions) | 将特定幻灯片保存为具有指定格式和选项的文件。 |
Save(stream: Stream, slides: int[], format: SaveFormat) | 将特定幻灯片以指定格式保存到流中。 |
Save(stream: Stream, slides: int[], format: SaveFormat, options: ISaveOptions) | 将特定幻灯片以指定格式和选项保存到流中。 |
Save(options: ISaveOptions) | 使用指定的 options 对象保存演示文稿。 |