Update微软幻灯片软件Presentation Content
You can use the PPT API to programmatically add dynamic content to an existing PowerPoint®演示。首先,明白了Update Presentation Content Programmatically.
Functions
getMasterNames |
Get names of slide masters for presentation |
getLayoutnames. |
获取演示幻灯片大师的布局名称 |
getTableStyleNames |
获取表格样式名称进行演示 |
find |
Search a presentation |
add |
将文本框,表格或图片添加到幻灯片 |
replace |
替换幻灯片中的文本,表格或图片 |
find |
Search slide for content |
add |
将段落添加到内容占位符 |
replace |
Replace content placeholder or content |
add |
Add paragraph to text box |
replace |
Replace text box paragraphs |
add |
Add content to text box placeholder |
replace |
Replace text box placeholder content |
replace |
Replace table placeholder with table |
replace |
用另一个表替换模板表 |
replace |
Replace picture placeholder with picture |
replace |
Replace template picture with another picture |
pptview |
OpenMicrosoft微软幻灯片软件presentation or convert it to PDF |
rptview |
Display report or presentation |
Classes
mlreportgen.ppt.pruseentation. |
创建一个Microsoft微软幻灯片软件介绍容器 |
mlreportgen.ppt.Slide |
Presentation slide |
mlreportgen.ppt.contentPlaceHolder. |
幻灯片内容的占位符 |
mlreportgen.ppt.TextBoxPlaceholder |
Placeholder for slide title |
mlreportgen.ppt.picture.Placeholder |
Placeholder for slide picture |
mlreportgen.ppt.TablePlaceholder |
幻灯片表的占位符 |
mlreportgen.ppt.TextBox |
Text box |
mlreportgen.ppt.paragraph. |
Formatted block of text (paragraph) |
mlreportgen.ppt.Text |
Text to include in a presentation |
mlreportgen.ppt.ExternalLink |
Hyperlink to location outside of presentation |
mlreportgen.ppt.InternalLink |
Hyperlink to a slide in a presentation |
mlreportgen.ppt.picture. |
Picture to include in presentation |
mlreportgen.ppt.TemplatePicture |
从模板演示幻灯片图片 |
mlreportgen.ppt.Table |
Table in presentation |
mlreportgen.ppt.TemplateTable |
Table from template presentation slide |
mlreportgen.ppt.tablerow. |
Table row |
mlreportgen.ppt.tableentry. |
Table entry |
mlreportgen.ppt.ColSpec |
Formatting for table column |
mlreportgen.ppt.ColWidth |
Table column width |
Examples and How To
- Update Presentation Content Programmatically
You can use the PPT API to update content programmatically in an existing PowerPoint presentation.
- 创建一个Presentation Generator
创建一个matlab.®program to generate a PowerPoint presentation.
- Set Up a PowerPoint Presentation Template
A PowerPoint template specifies the fixed content and default layout and appearance of the slides in a presentation.
- Add Slides
To add a slide to a presentation, use the PPT API to add slide based on a slide layout defined in the PowerPoint presentation template.
- Add and Replace Presentation Content
要使用PPT API添加或替换PowerPoint演示文稿中的内容:
- 创建一个nd Format Text
You can create a
Text
object using anmlreportgen.ppt.Text
构造函数,指定字符向量。 - 创建一个nd Format Paragraphs
创建一个
Paragraph
object, use themlreportgen.ppt.paragraph.
constructor. - 创建一个nd Format Tables
创建一个table using an
mlreportgen.ppt.Table
目的。 - 创建一个nd Format Pictures
创建一个picture for a presentation, use the
mlreportgen.ppt.picture.
constructor. - 创建一个nd Format Links
在演示中,您可以从一个幻灯片到另一个幻灯片或外部链接到演示之外的外部链接。
- 以编程方式创建演示文稿
使用MATLAB API for PowerPoint (PPT API) to generate a presentation.
Concepts
- 演示文稿格式化方法
Format a presentation by using style sheets, format objects, or format properties.