User`s guide
mlreportgen.dom.Paragraph class
12-235
mlreportgen.dom.Paragraph class
Package: mlreportgen.dom
Formatted block of text (paragraph)
Description
Use a mlreportgen.dom.Paragraph object to define a paragraph. You can append
document elements, such as an image, to a paragraph.
Construction
paragraphObj = Paragraph(text) creates a paragraph containing a
mlreportgen.dom.Text object with the text specified by the text string.
paragraphObj = Paragraph(text,styleName) creates a paragraph having that
specified style. The style specified by styleName must be defined in the template used for
the document element to which this paragraph is appended.
paragraphObj = Paragraph(docElementObj) creates a paragraph containing the
document element specified by docElementObj (for example, an image).
Input Arguments
text — Paragraph text
string
Paragraph text, specified as a string.
styleName — Style for the paragraph
string
The name of a style, specified as a string. The style must be defined in the template used
to create the document to which this paragraph is appended.
docElementObj — Document element to include in the new paragraph
a DOM object