Class TextFrame (Word VBA)
The class TextFrame 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.
Class Shape gives access to class TextFrame.
Dim tfe as TextFrame
Set tfe = ActiveDocument.Background.TextFrame
Methods
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
AutoSize returns or sets a Long that represents whether a text frame is sized automatically.
Column this object, member, or enumeration is deprecated and is not intended to be used in your code.
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.
HasText true if 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.
Next returns a TextFrame object that represents the next text frame in a collection of shapes.
NoTextRotation true if text in the text frame should not rotate when the shape is rotated.
Orientation returns or sets the orientation of the text inside the frame.
Overflowing true if the text inside the specified text frame doesn't all fit within the frame.
PathFormat returns or sets the path type for the specified text frame.
Previous returns a TextFrame object that represents the previous text frame in a collection of shapes.
TextRange returns a Range object that represents the text in the specified text frame.
ThreeD returns a ThreeDFormat object that contains 3D effect formatting properties for the specified text frame.
VerticalAnchor returns or sets an MsoVerticalAnchor constant that represents the vertical alignment of the text within a shape.
WarpFormat returns or sets the warp format (how the text is warped) for the specified text frame.
WordWrap true if Microsoft Word wraps Latin text in the middle of a word in the specified text frames. Read/write Long.
Related Classes
Range - Represents a contiguous area in a document. Each Range object is defined by a starting and ending character position.
ThreeDFormat - Represents a shape's three-dimensional formatting.