Class: mlreportgen.ppt.Presentation
Package: mlreportgen.ppt

Get table style names for presentation



tableStyles = getTableStyleNames(presentation) gets the table style names for a presentation.


expand all

Create a presentation.

import mlreportgen.ppt.*
slides = Presentation('myPlaceholderPresentation');

Get the names of table styles in the presentation. The output actually includes many more table style names.

ans = 

    'Medium Style 2 - Accent 1'           '{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}'
    'Light Style 1'                       '{9D7B26C5-4107-4FEC-AEDC-1716B250A1EF}'
    'Light Style 1 - Accent 1'            '{3B4B98B0-60AC-42C2-AFA5-B58CD77FA1E5}'
    'Light Style 1 - Accent 2'            '{0E3FDE45-AF77-4B5C-9715-49D594BDF05E}'

Create a table with the specified table format.

table1 = Table({'a','b';'c','d'},'Medium Style 2 - Accent 1');

Input Arguments

expand all

Presentation to get tables style names for, specified as an mlreportgen.ppt.Presentation object.

Output Arguments

expand all

Table styles in the presentation, returned as an array of character vectors. Each table style name has an associated text and a numeric identifier. For example:

'Medium Style 2 - Accent 1'           '{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}'

To use a table style name with the PPT API, you can use either the text or the numeric identifier.

Introduced in R2015b