To add a paragraph to a slide title, use theadd
method of theTextBoxPlaceholder
object that represents the title. This example creates a presentation with aTitle and Table
slide and then creates a second presentation from the first presentation. In the second presentation, the example adds content to the title of theTitle and Table
slide.
Import the PPT package so that you do not have to use long, fully qualified names for the PPT API classes.
Create a presentation and add aTitle and Table
slide to the presentation.
Find the text box placeholder for the title and replace the content.
Close and view the presentation.
Here is the title slide in the generated presentation:
Create a second presentation, using the first presentation as the template.
Find the text box placeholder for the title and add content to the title.
Close and view the presentation.
In the second presentation, the title has the content from the template presentation and the added content.