MathPortion class

MathPortion class

Represents a portion with mathematical context inside.

Inheritance:MathPortionPortion

The MathPortion type exposes the following members:

Constructors

ConstructorDescription
__init__Initializes a new instance of the MathPortion class.

Properties

PropertyDescription
portion_formatReturns oformatting bject which contains explicitly set formatting properties of the text portion with no inheritance applied.
Read-only IPortionFormat.
textGets or sets the plain text of a portion.
Read/write str.
fieldReturns a field of this portion.
Read-only IField.
math_paragraphMath paragraph
slide
presentation

Methods

MethodDescription
add_fieldConverts this portion to the automaticaly updated field.
add_fieldConverts this portion to the automaticaly updated field.
remove_fieldConverts this field portion to the simple portion.
get_rectGet coordinates of rect that bounds portion. The rect includes all the lines of
text in portion, including empty ones.
get_coordinatesGet coordinates of the beginning of the portion. The X coordinate of point represents the
portion beginning from the first character including left side bearing. The Y coordinate
includes top side bearing.

See Also