Class TextFrame (PowerPoint VBA)

The class TextFrame represents the text frame in a Shape object. Contains the text in the text frame and the properties and methods that control the alignment and anchoring of the text frame.

The classes Shape and TextStyle. give access to class TextFrame


Dim tfe as TextFrame
Set tfe = ActiveWindow.RangeFromPoint.TextFrame

Methods

DeleteText - Deletes the text associated with the specified shape.

Properties

AutoSize returns or sets a value that indicates whether the size of the specified shape is changed automatically to fit text within its boundaries.

HasText returns whether the specified shape has text associated with it.

HorizontalAnchor returns or sets the horizontal alignment of text in a text frame.

MarginBottom returns or sets the distance (in points) between the bottom of the text frame and the bottom of the inscribed rectangle of the shape that contains the text.

MarginLeft returns or sets the distance (in points) between the left edge of the text frame and the left edge of the inscribed rectangle of the shape that contains the text.

MarginRight returns or sets the distance (in points) between the right edge of the text frame and the right edge of the inscribed rectangle of the shape that contains the text.

MarginTop returns or sets the distance (in points) between the top of the text frame and the top of the inscribed rectangle of the shape that contains the text.

Orientation returns or sets text orientation.

Ruler returns a Ruler object that represents the ruler for the specified text.

TextRange returns a TextRange object that represents the text in the specified text frame.

VerticalAnchor returns or sets the vertical alignment of text in a text frame.

WordWrap determines whether lines break automatically to fit inside the shape.

Ruler - Represents the ruler for the text in the specified shape or for all text in the specified text style. Contains tab stops and the indentation settings for text outline levels.

TextRange - Contains the text that's attached to a shape, and properties and methods for manipulating the text.