IParagraph class

IParagraph class

Represents a paragraph of a text.

The IParagraph type exposes the following members:

Properties

PropertyDescription
portionsReturns the collection of a text portions.
Read-only IPortionCollection.
paragraph_formatReturns the formatting object for this paragraph.
Read-only IParagraphFormat.
textGets or sets the the plain text of a paragraph.
Read/write str.
end_paragraph_portion_formatSpecifies the portion properties that are to be used if another portion is inserted after
the last one.
slide
presentation

Methods

MethodDescription
get_image(self)Returns an image of the paragraph.
get_image(self, scale_x, scale_y)Returns an image of the paragraph with the specified scale.
join_portions_with_same_formatting(self)Joins runs with same formatting.
get_rect(self)Get coordinates of rect that bounds paragraph. The rect includes all the lines of
text in paragraph, including empty ones.
get_lines_count(self)Get number of lines in a paragraph.

See Also