TextFrame
The part of a shape that contains its text. Not all shapes have a text frame.Properties
All text in this text-frame as a single string. Line-feed characters (
"\n") separate paragraphs, and vertical-tab characters ("\v") appear for line breaks.Sequence of paragraphs in this text frame. A text frame always contains at least one paragraph.
Resizing strategy used to fit text within this shape. May be
None, MSO_AUTO_SIZE.NONE, MSO_AUTO_SIZE.SHAPE_TO_FIT_TEXT, or MSO_AUTO_SIZE.TEXT_TO_FIT_SHAPE.Vertical alignment of text in this text frame.
None indicates the value should be inherited from the style hierarchy.True when lines of text are wrapped to fit within the shape’s width. Assigning None causes the setting to be inherited from the style hierarchy.Inset of text from the bottom text frame border as a Length value.
Inset of text from left text frame border as Length value.
Inset of text from right text frame border as Length value.
Inset of text from top text frame border as Length value.
Methods
Return new paragraph appended to the sequence of paragraphs in this text frame.
Remove all paragraphs except one empty one.
Fit text entirely within bounds of its shape by setting word wrap on and applying the “best-fit” font size.
Font family name
Maximum font size in points
Whether text should be bold
Whether text should be italic
Path to TrueType font file for font metrics
Paragraph
Paragraph object. Not intended to be constructed directly.Properties
Text of paragraph as a single string. Vertical-tab characters (
"\v") represent line-breaks.Sequence of runs in this paragraph.
Font object containing default character properties for runs in this paragraph.
Horizontal alignment of this paragraph.
None indicates the paragraph inherits from its style hierarchy.Indentation level of this paragraph (0..8 inclusive). 0 represents a top-level paragraph.
Space between baselines in successive lines. Numeric values indicate multiples of line heights. Length values indicate fixed height.
Spacing to appear between this paragraph and the prior paragraph.
Spacing to appear between this paragraph and the subsequent paragraph.
Methods
Return a new run appended to the runs in this paragraph.
Add line break at end of this paragraph.
Remove all content from this paragraph. Paragraph properties are preserved.
Run
Text run object. Corresponds toa:r child element in a paragraph.
Properties
Unicode string containing the text in this run. Assignment replaces all text in the run.
Font instance containing run-level character properties for the text in this run.
Proxy for any hyperlink element. Created on demand and available whether a hyperlink element is present or not.
Font
Character properties object, providing font size, font name, bold, italic, etc.Properties
Typeface name for this font. Returns
None if typeface is inherited from theme. Setting to None removes any override.Font height in English Metric Units (EMU).
None indicates font size should be inherited.Boolean bold value.
None clears the bold setting and inherits from style hierarchy.Boolean italic value. Has same behaviors as bold with respect to
None values.Underline setting.
True indicates single underline, False indicates no underline. Members of MsoTextUnderlineType enumeration indicate other underline styles.ColorFormat instance providing access to the color settings for this font.
FillFormat instance for this font. Provides access to fill properties such as fill color.
Language id of this font. Member of the MsoLanguageId enumeration. Assigning
None removes any language setting.