Contenido principal

Format PowerPoint Presentation and Content

R2026b
Specify presentation layout and content formatting using the PPT API

Specify presentation layout and content formatting programmatically using the MATLAB® API for PowerPoint® (PPT API) by using

  • PPT API format objects

  • PPT API object properties

  • modifying the default presentation template

You do not have to specify any presentation formatting in your presentation generator to generate a presentation as all presentations and presentation content objects have default formatting. Use these approaches when you want to customize the formatting from the default choices. To get started with presentation formatting, see Presentation Formatting Approaches.

Functions

getMasterNames Get names of slide masters for presentation
getLayoutNames Get names of layouts for presentation slide master
getTableStyleNamesGet table style names for presentation
mlreportgen.ppt.getDefaultNumberFormatGet default formatting for PPT API numeric data (Since R2024b)
mlreportgen.ppt.setDefaultNumberFormatSet default formatting of numeric data generated by PPT API (Since R2024b)

Classes

expand all

mlreportgen.ppt.AutoFitScale text to fit placeholder or text box
mlreportgen.ppt.BackgroundColorBackground color of presentation element
mlreportgen.ppt.BoldBold for text object
mlreportgen.ppt.FontColorFont color
mlreportgen.ppt.FontFamilyFont family
mlreportgen.ppt.FontSizeFont size
mlreportgen.ppt.HAlignHorizontal alignment of paragraph
mlreportgen.ppt.ItalicItalic for text object
mlreportgen.ppt.OuterMarginOuter margin between bounding box and adjacent presentation objects (Since R2026a)
mlreportgen.ppt.StrikeStrikethrough text
mlreportgen.ppt.SubscriptSubscript text
mlreportgen.ppt.SuperscriptSuperscript text
mlreportgen.ppt.UnderlineUnderline text
mlreportgen.ppt.NumberFormatNumber formatting (Since R2024b)
mlreportgen.ppt.BorderBorder of a table, table entry, picture, or video
mlreportgen.ppt.ColSepTable column separators
mlreportgen.ppt.ColSpecFormatting for table column
mlreportgen.ppt.ColWidthTable column width
mlreportgen.ppt.FlowDirectionTable column flow direction
mlreportgen.ppt.InnerMarginMargin between content and bounding box (Since R2026a)
mlreportgen.ppt.RowHeightTable row height
mlreportgen.ppt.RowSepTable row separators
mlreportgen.ppt.TableStyleOptionsStripe table rows and columns
mlreportgen.ppt.TextOrientationOrientation of text in a table entry
mlreportgen.ppt.VAlignVertical alignment of table entry content

Topics