Paragraph class

Paragraph class

Represents a paragraph of text.

The Paragraph type exposes the following members:

Constructors

ConstructorDescription
__init__Initializes a new instance of the Paragraph class with default properties.
__init__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
join_portions_with_same_formattingJoins runs with same formatting.
get_rectGet coordinates of rect that bounds paragraph. The rect includes all the lines of
text in paragraph, including empty ones.
get_lines_countGet number of lines in a paragraph.

See Also