Shape.TextFrame2 property (PowerPoint)

Returns the TextFrame2 object associated with the specified Shape object that contains the alignment and anchoring properties for the specified shape. Read-only.

Syntax

expression.TextFrame2

expression An expression that returns a Shape object.

Return value

TextFrame2

Remarks

Use the TextRange property of the TextFrame2 object to return the text in the text frame.

Use the HasTextFrame property to determine whether a shape contains a text frame before you attempt to get the TextFrame2 property value.

See also

Shape Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.