append
Class: mlreportgen.ppt.Paragraph
Namespace: mlreportgen.ppt
Append content to paragraph
Description
appends
content to a paragraph.contentObj
= append(paragraph
,content
)
Examples
Append Formatted Text and External Link to Paragraph
Create a presentation.
import mlreportgen.ppt.* ppt = Presentation('myParagraphPresentation.pptx'); open(ppt); add(ppt,'Title Slide'); add(ppt,'Title and Content');
Create a Paragraph
object to use for
the title of slides. Make the text bold and red.
p1 = Paragraph('Title for ');
Add more text to the title.
text = append(p1,'My Presentation'); text.Bold = true; text.FontColor = 'red';
Replace the title with the p1
paragraph.
replace(ppt,'Title',p1);
Create a paragraph for the content of the second slide.
p2 = Paragraph('Click the link for the '); contentObj = append(p2,ExternalLink('https://www.mathworks.com','MathWorks site.'));
Replace the content with the p2
paragraph.
replace(ppt,'Content',p2);
Close and view the presentation.
close(ppt); rptview(ppt);
Input Arguments
paragraph
— Paragraph to append content to
mlreportgen.ppt.Paragraph
object
Paragraph to append content to, specified as an mlreportgen.ppt.Paragraph
object.
content
— Content to append to paragraph
character vector | mlreportgen.ppt.Text
object | mlreportgen.ppt.InternalLink
| mlreportgen.ppt.ExternalLink
object
Content to add to a paragraph, specified as a character vector, or an mlreportgen.ppt.Text
,
mlreportgen.ppt.InternalLink
, or mlreportgen.ppt.ExternalLink
or an object.
Output Arguments
contentObj
— Content object
mlreportgen.ppt.Text
object | mlreportgen.ppt.InternalLink
| mlreportgen.ppt.ExternalLink
object
Content object, returned as an mlreportgen.ppt.Text
,
mlreportgen.ppt.InternalLink
, or mlreportgen.ppt.ExternalLink
or an object.
Version History
Introduced in R2015b
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)