Presentation
Presentation
概述
Presentation 是 Aspose.Slides FOSS 中用于 Python 的类。继承自:IPresentation、IPresentationComponent。
表示 Microsoft PowerPoint 演示文稿。
此类提供 3 个方法,用于在 Python 程序中处理 Presentation 对象。可用方法包括:__init__、dispose、save。在安装了 Aspose.Slides FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:as_i_presentation_component、comment_authors、current_date_time、document_properties、first_slide_number、images,以及另外 7 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
current_date_time | Any | 读写 | 返回或设置日期和时间,以替代 datetime 字段的内容。 |
slides | ISlideCollection | 读取 | 返回在演示文稿中定义的所有幻灯片的列表。 |
notes_size | INotesSize | 读取 | 返回备注幻灯片尺寸对象。 |
layout_slides | IGlobalLayoutSlideCollection | 读取 | 返回演示文稿中定义的所有布局幻灯片的列表。 |
masters | IMasterSlideCollection | 读取 | 返回演示文稿中定义的所有母版幻灯片的列表。 |
comment_authors | ICommentAuthorCollection | 读取 | 返回评论作者的集合。 |
document_properties | IDocumentProperties | 读取 | 返回包含标准和自定义文档属性的 DocumentProperties 对象。 |
images | IImageCollection | 读取 | 返回演示文稿中所有图像的集合。 |
master_theme | IMasterTheme | 读取 | 返回演示文稿的主主题。 |
first_slide_number | int | 读写 | 表示演示文稿中的第一张幻灯片的编号。 |
source_format | SourceFormat | 读取 | 返回有关演示文稿是从哪种格式加载的信息。 |
as_i_presentation_component | IPresentationComponent | 读取 | 获取 as i 演示组件。 |
presentation | IPresentation | 读取 | 获取演示文稿。 |
方法
| 签名 | 描述 |
|---|---|
__init__() | 初始化演示文稿。 |
save() | 将演示文稿保存到文件或流。 |
dispose() | 释放此 Presentation 对象使用的所有资源。 |