To add a paragraph to a slide title, use the add
method of the TextBoxPlaceholder
object that represents the title. This example creates a presentation with a Title 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 the Title and Table
slide.
Import the PPT namespace so that you do not have to use long, fully qualified names for the PPT API classes.
Create a presentation and add a Title and Table
slide to the presentation.
Find the text box placeholder for the title and replace the content.
Close and generate 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.