mlreportgen.ppt.TablePlaceholder Class
Namespace: mlreportgen.ppt
Placeholder for slide table
Description
An object of the mlreportgen.ppt.TablePlaceholder class represents a
            table placeholder in a slide.
The PPT API creates a TablePlaceholder object when you add a slide to a
            presentation and the slide layout has a table placeholder. In the default PPT API, the
                Title and Table layout has a table placeholder.
 To find a TablePlaceholder object, use the find
            method of the slide that contains the table placeholder. To replace the table
            placeholder with a table, use the replace method of the
                TablePlaceholder object. The replace method replaces
            the TablePlaceholder object with an mlreportgen.ppt.Table object.
You can use the properties of a TablePlaceholder object to specify the
            position or size of the replacement table. However, the text formatting properties are
            ignored. To format the table that you use to replace a TablePlaceholder
            object, use the properties of the Table object.
The mlreportgen.ppt.TablePlaceholder class is a handle class.
Class Attributes
| HandleCompatible | true | 
| ConstructOnLoad | true | 
For information on class attributes, see Class Attributes.
Properties
Methods
Examples
Tips
- When you replace a table placeholder with a table in a presentation and then use the presentation as a template for a new presentation, the PPT API creates an - mlreportgen.ppt.TemplateTableobject for the table in the new presentation. See Add or Replace a Table.
- To see the placeholder objects that the PPT API creates for a slide object, view the - Childrenproperty of the slide. For example, when you add a- Title and Tableslide to a presentation, the- Childrenproperty is an array that contains an- mlreportgen.ppt.TextBoxPlaceholderobject and an- mlreportgen.ppt.TablePlaceholderobject.- ppt = mlreportgen.ppt.Presentation("test.pptx"); open(ppt); slide = add(ppt,"Title and Table"); slide.Children(1) - ans = TextBoxPlaceholder with properties: Bold: [] Font: [] ComplexScriptFont: [] FontColor: [] FontSize: [] Italic: [] Strike: [] Subscript: [] Superscript: [] Underline: [] BackgroundColor: [] VAlign: [] Name: 'Title' X: [] Y: [] Width: [] Height: [] Style: [] Children: [] Parent: [1×1 mlreportgen.ppt.Slide] Tag: 'ppt.TextBoxPlaceholder:6:7' Id: '6:7'- slide.Children(2) - ans = TablePlaceholder with properties: Bold: [] Font: [] ComplexScriptFont: [] FontColor: [] FontSize: [] Italic: [] Strike: [] Subscript: [] Superscript: [] Underline: [] BackgroundColor: [] VAlign: [] Name: 'Table' X: [] Y: [] Width: [] Height: [] Style: [] Children: [] Parent: [1×1 mlreportgen.ppt.Slide] Tag: 'ppt.TablePlaceholder:7:8' Id: '7:8'
Version History
Introduced in R2015b
