Paragraph class

Paragraph class

Represents a paragraph of text.

The Paragraph type exposes the following members:

Constructors

ConstructorDescription
__init__(self)Initializes a new instance of the Paragraph class with default properties.
__init__(self, para)Copy constructor that initializes a new instance of a Paragraph class.

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