Partager via


TextFrame Members (Word)

Represents the text frame in a Shape object. The TextFrame object contains the text in the text frame and the properties that control the margins and orientation of the text frame.

Methods

Name

Description

BreakForwardLink

Breaks the forward link for the specified text frame, if such a link exists.

DeleteText

Deletes the text from a text frame and all the associated properties of the text, including font attributes.

ValidLinkTarget

Determines whether the text frame of one shape can be linked to the text frame of another shape. .

Properties

Name

Description

Application

Returns an Application object that represents the Microsoft Word application.

AutoSize

Returns or sets a Long that represents whether a text frame is sized automatically. Read/write.

Column

Returns the Column object that represents the columns of the specified text frame. Read-only.

ContainingRange

Returns a Range object that represents the entire story in a series of shapes with linked text frames that the specified text frame belongs to. Read-only.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Long.

HasText

True if the specified shape has text associated with it. Read-only Boolean.

HorizontalAnchor

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

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 Single.

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 Single.

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 Single.

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 Single.

Next

Returns a TextFrame object that represents the next text frame in a collection of shapes. Read-only.

NoTextRotation

True if text in the text frame should not rotate when the shape is rotated. Read/write MsoTriState.

Orientation

Returns or sets the orientation of the text inside the frame. Read/write MsoTextOrientation.

Overflowing

True if the text inside the specified text frame doesn't all fit within the frame. Read-only Boolean.

Parent

Returns a Shape object that represents the parent shape of the text frame.

PathFormat

Returns or sets the path type for the specified text frame. Read/write MsoPathType.

Previous

Returns a TextFrame object that represents the previous text frame in a collection of shapes. Read-only.

TextRange

Returns a Range object that represents the text in the specified text frame.

ThreeD

Returns a ThreeDFormat object that contains 3-D effect formatting properties for the specified text frame. Read-only.

VerticalAnchor

Returns or sets an MsoVerticalAnchor constant that represents the vertical alignment of the text within a shape. Read/write.

WarpFormat

Returns or sets the warp format (how the text is warped) for the specified text frame. Read/write MsoWarpFormat.

WordWrap

True if Microsoft Word wraps Latin text in the middle of a word in the specified text frames. Read/write Long. .