getTableStyleNames
Class: mlreportgen.ppt.Presentation
Namespace: mlreportgen.ppt
Get table style names for presentation
Description
gets
the table style names for a presentation.tableStyles = getTableStyleNames(presentation)
Examples
Import the PPT namespace so that you do not have to use long, fully qualified names for the PPT API classes.
import mlreportgen.ppt.*Create a presentation.
ppt = Presentation('myPresentation.pptx');
open(ppt);Get the names of the table styles in the presentation template.
getTableStyleNames(ppt)
ans = 74×2 cell
{'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}'}
{'Light Style 1 - Accent 3' } {'{C083E6E3-FA7D-4D7B-A595-EF9225AFEA82}'}
{'Light Style 1 - Accent 4' } {'{D27102A9-8310-4765-A935-A1911B00CA55}'}
{'Light Style 1 - Accent 5' } {'{5FD0F851-EC5A-4D38-B0AD-8093EC10F338}'}
{'Light Style 1 - Accent 6' } {'{68D230F3-CF80-4859-8CE7-A43EE81993B5}'}
{'Light Style 2' } {'{7E9639D4-E3E2-4D34-9284-5A2195B3D0D7}'}
{'Light Style 2 - Accent 1' } {'{69012ECD-51FC-41F1-AA8D-1B2483CD663E}'}
{'Light Style 2 - Accent 2' } {'{72833802-FEF1-4C79-8D5D-14CF1EAF98D9}'}
{'Light Style 2 - Accent 3' } {'{F2DE63D5-997A-4646-A377-4702673A728D}'}
{'Light Style 2 - Accent 4' } {'{17292A2E-F333-43FB-9621-5CBBE7FDCDCB}'}
{'Light Style 2 - Accent 5' } {'{5A111915-BE36-4E01-A7E5-04B1672EAD32}'}
{'Light Style 2 - Accent 6' } {'{912C8C85-51F0-491E-9774-3900AFEF0FD7}'}
{'Light Style 3' } {'{616DA210-FB5B-4158-B5E0-FEB733F419BA}'}
{'Light Style 3 - Accent 1' } {'{BC89EF96-8CEA-46FF-86C4-4CE0E7609802}'}
{'Light Style 3 - Accent 2' } {'{5DA37D80-6434-44D0-A028-1B22A696006F}'}
{'Light Style 3 - Accent 3' } {'{8799B23B-EC83-4686-B30A-512413B5E67A}'}
{'Light Style 3 - Accent 4' } {'{ED083AE6-46FA-4A59-8FB0-9F97EB10719F}'}
{'Light Style 3 - Accent 5' } {'{BDBED569-4797-4DF1-A0F4-6AAB3CD982D8}'}
{'Light Style 3 - Accent 6' } {'{E8B1032C-EA38-4F05-BA0D-38AFFFC7BED3}'}
{'Medium Style 1' } {'{793D81CF-94F2-401A-BA57-92F5A7B2D0C5}'}
{'Medium Style 1 - Accent 1'} {'{B301B821-A1FF-4177-AEE7-76D212191A09}'}
{'Medium Style 1 - Accent 2'} {'{9DCAF9ED-07DC-4A11-8D7F-57B35C25682E}'}
{'Medium Style 1 - Accent 3'} {'{1FECB4D8-DB02-4DC6-A0A2-4F2EBAE1DC90}'}
{'Medium Style 1 - Accent 4'} {'{1E171933-4619-4E11-9A3F-F7608DF75F80}'}
{'Medium Style 1 - Accent 5'} {'{FABFCF23-3B69-468F-B69F-88F6DE6A72F2}'}
{'Medium Style 1 - Accent 6'} {'{10A1B5D5-9B99-4C35-A422-299274C87663}'}
{'Medium Style 2' } {'{073A0DAA-6AF3-43AB-8588-CEC1D06C72B9}'}
⋮
Create a table and specify the table style name.
table = Table({'a','b';'c','d'});
table.StyleName = 'Medium Style 2 - Accent 1';Add a slide that has a title and a table. Replace the table placeholder with the table you created.
slide = add(ppt,'Title and Table'); replace(slide,'Table',table);
Close and view the presentation.
close(ppt); rptview(ppt);
Input Arguments
Presentation to search for table style names, specified as an
mlreportgen.ppt.Presentation object.
Output Arguments
Table styles in the presentation, returned as an N-by-2 cell array of character vectors. Each style has a name and a numeric identifier. For example:
{'Medium Style 2 - Accent 1' } {'{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}'}To specify a table style in an mlreportgen.ppt.Table object, you can use the
name or numeric identifier. Use the numeric identifier when the name can
vary based on locale. If you use the numeric identifier, include the curly
braces inside of the single or double quotes. For
example:
table = Table({"a","b";"c","d"});
table.StyleName = "{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}";Version History
Introduced in R2015b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- 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)