Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Create and Format Presentation Objects

Create and format text, paragraph, table, link and picture objects

You can add presentation content objects, such as text, tables, and pictures, to a presentation. You can format those content objects by defining styles that use format objects specific to the type of content object. Also, you can specify formats using content object formatting properties. To get started, see Add and Replace Presentation Content.

Functions

mlreportgen.ppt.Paragraph.appendAppend content to paragraph
mlreportgen.ppt.TextBox.addAdd paragraph to text box
mlreportgen.ppt.TextBox.replaceReplace text box paragraphs
mlreportgen.ppt.Picture.replaceReplace picture
mlreportgen.ppt.Table.appendAppend row to table
mlreportgen.ppt.Table.rowAccess table row
mlreportgen.ppt.Table.entryAccess table entry
mlreportgen.ppt.Table.replaceReplace table with another table
mlreportgen.ppt.TableRow.appendAppend table entry to table row
mlreportgen.ppt.TableEntry.appendAppend text or paragraph to table entry
pptviewOpen Microsoft PowerPoint presentation or convert it to PDF

Classes

mlreportgen.ppt.PresentationCreate Microsoft PowerPoint presentation
mlreportgen.ppt.SlidePresentation slide
mlreportgen.ppt.ParagraphFormatted block of text (paragraph)
mlreportgen.ppt.TextBoxText box
mlreportgen.ppt.TextText
mlreportgen.ppt.TableTable
mlreportgen.ppt.TableEntryTable entry
mlreportgen.ppt.TableRowTable row
mlreportgen.ppt.PictureCreate picture to include in presentation
mlreportgen.ppt.ExternalLinkHyperlink to location outside of presentation
mlreportgen.ppt.FontFamilyFont family
mlreportgen.ppt.FontColorFont color of presentation element
mlreportgen.ppt.FontSizeFont size
mlreportgen.ppt.BoldBold for text object
mlreportgen.ppt.ItalicItalic for text object
mlreportgen.ppt.StrikeStrike through text
mlreportgen.ppt.UnderlineUnderline text
mlreportgen.ppt.SubscriptSubscript
mlreportgen.ppt.SuperscriptSuperscript
mlreportgen.ppt.HAlignHorizontal alignment of paragraph
mlreportgen.ppt.VAlignVertical alignment of table entry content
mlreportgen.ppt.TableStyleOptionsStripe table rows and columns
mlreportgen.ppt.ColSpecFormatting for table column
mlreportgen.ppt.ColWidthTable column width
mlreportgen.ppt.BackgroundColorBackground color of presentation element

Examples and How To

Create and Format Text

You can create a Text object using an mlreportgen.ppt.Text constructor, specifying a character vector.

Create and Format Paragraphs

To create a Paragraph object, use the mlreportgen.ppt.Paragraph constructor.

Create and Format Tables

To create a table, you can:

Create and Format Pictures

To create a picture for a presentation, use the mlreportgen.ppt.Picture constructor.

Create and Format Links

To create a link to a location outside of a presentation, use the mlreportgen.ppt.ExternalLink constructor.

Define a Style Using Format Objects

A format object is a MATLAB® program entity that defines the properties and functions of a specific type of presentation format, such as the weight for text (bold or regular).

Use Format Properties

Most PPT API presentation objects (such as a Paragraph object) include properties that you can use to set the format of the content of an object.

Concepts

Presentation Formatting Approaches

With the PPT API, you can use a PowerPoint® template and PPT API format objects and properties to specify the appearance of an object.

Presentation Format Inheritance

The PPT API allows you to use a PowerPoint template and PPT API format objects and properties to format presentation objects.

Was this topic helpful?