clone
R2026bClass: mlreportgen.ppt.Paragraph
Namespace: mlreportgen.ppt
Copy PPT API paragraph
Syntax
objCopy = clone(obj)
Description
Input Arguments
Output Arguments
Examples
Tips
Use the
clonemethod to include the same paragraph content more than once in a presentation.When you clone a paragraph, the PPT API copies all of the children objects of the source paragraph, but not the parent of the paragraph.
The paragraph copy includes formats that you set in the source paragraph. The formats of the paragraph copy use the same format objects as the source paragraph. If you change the format setting in the shared format object, the source and copy reflect the change.
If you change a format setting in the paragraph copy, the PPT API creates a new format object for the copy, using the new format setting. For that format, the source paragraph and the copy no longer share the same format object.
Version History
Introduced in R2021b