Class TextFrame2 (PowerPoint VBA)
The class TextFrame2 represents the text frame in a Shape or ShapeRange object. Contains the text in the text frame and exposes properties and methods that control the alignment and anchoring of the text frame.
The classes ChartFormat and Shape. give access to class TextFrame2
Dim tf2 as TextFrame2
Set tf2 = ActiveWindow.RangeFromPoint.TextFrame2
Methods
DeleteText - Deletes the text from a text frame and all the associated properties of the text, including font attributes.
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.
Column returns the Column object that represents the columns of the specified text frame.
HasText indicates whether the shape that contains the specified text frame 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.
NoTextRotation indicates whether to rotate text with the TextFrame2 rotation. One of the MsoTriState constants.
Orientation returns or sets text orientation.
PathFormat returns or sets the path type for the specified text frame.
Ruler returns a Ruler2 object that represents the ruler for the specified text.
TextRange returns a TextRange2 object (PowerPoint) object that represents the text in the specified text frame.
ThreeD returns a ThreeDFormat object that represents the three-dimensional formatting of the parent shape.
VerticalAnchor returns or sets the vertical alignment of text in a text frame.
WarpFormat returns or sets the warp format (how the text is warped) for the specified text frame.
WordArtFormat returns or sets the WordArt type for the specified text frame.
WordWrap determines whether lines of text break automatically to fit inside the shape.
Related Classes
ThreeDFormat - Represents a shape's three-dimensional formatting.