Share via


TextFrame Members (PowerPoint)

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.

Methods

Name

Description

DeleteText

Deletes the text associated with the specified shape.

Properties

Name

Description

Application

Returns an Application object that represents the creator of the specified object.

AutoSize

Returns or sets a value that indicates whether the size of the specified shape is changed automatically to fit text within its boundaries. Read/write.

Creator

Returns a Long that represents the four-character creator code for the application in which the specified object was created. For example, if the object was created in Microsoft PowerPoint, this property returns the hexadecimal number 50575054. Read-only.

HasText

Returns whether the specified shape has text associated with it. Read-only.

HorizontalAnchor

Returns or sets the horizontal alignment of text in a text frame. Read/write.

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. Read/write.

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. Read/write.

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. Read/write.

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. Read/write.

Orientation

Returns or sets text orientation. Read/write.

Parent

Returns the parent object for the specified object.

Ruler

Returns a Ruler object that represents the ruler for the specified text. Read-only.

TextRange

Returns a TextRange object that represents the text in the specified text frame. Read-only.

VerticalAnchor

Returns or sets the vertical alignment of text in a text frame. Read/write.

WordWrap

Determines whether lines break automatically to fit inside the shape. Read/write.