clone
Class: mlreportgen.ppt.Paragraph
Namespace: mlreportgen.ppt
Syntax
objCopy = clone(obj)
Description
returns a copy of the objCopy
= clone(obj
)mlreportgen.ppt.Paragraph
object specified by
obj
. The copy includes the children of the source paragraph, but not
the parent.
Input Arguments
Output Arguments
Examples
Tips
Use the
clone
method 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