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.


appendAppend content to paragraph
addAdd paragraph to text box
replaceReplace text box paragraphs
replaceReplace picture
appendAppend row to table
rowAccess table row
entryAccess table entry
replaceReplace table with another table
appendAppend table entry to table row
appendAppend text or paragraph to table entry
pptviewOpen Microsoft PowerPoint presentation or convert it to PDF


expand all

mlreportgen.ppt.PresentationCreate Microsoft PowerPoint presentation
mlreportgen.ppt.SlidePresentation slide
mlreportgen.ppt.ParagraphFormatted block of text (paragraph)
mlreportgen.ppt.TextBoxText box
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.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.


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.