Table of contents
TOC
Collapse the table of content
Expand the table of content

TextFrame2 Members (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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.

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.

Methods

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

Properties

NameDescription
ApplicationGets an Application object that represents the container application for the TextFrame2 object. Read-only
AutoSizeReturns or sets a value that indicates whether the size of the specified shape is changed automatically to fit text within its boundaries. Read/write
ColumnReturns the Column object that represents the columns of the specified text frame. Read-only
CreatorReturns a 32-bit integer that indicates the application in which this object was created. Read-only. Long
HasTextIndicates whether the shape that contains the specified text frame has text associated with it. Read-only
HorizontalAnchorReturns or sets the horizontal alignment of text in a text frame. Read/write
MarginBottomReturns 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
MarginLeftReturns 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
MarginRightReturns 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
MarginTopReturns 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
NoTextRotationReturns or sets a value that specifies if the text on a shape is rotated if the shape itself is being rotated. Read/write
OrientationReturns or sets text orientation. Read/write
ParentReturns the calling object. Read-only
PathFormatReturns or sets the path type for the specified text frame. Read/write
RulerReturns a Ruler2 object that represents the ruler for the specified text. Read-only
TextRangeSets the text for a range of nodes in a SmartArt object. Read-only
ThreeDReturns a ThreeDFormat object that represents the three-dimensional formatting of the parent shape. Read-only
VerticalAnchorReturns or sets the vertical alignment of text in a text frame. Read/write
WarpFormatReturns or sets the warp format (how the text is warped) for the specified text frame. Read/write
WordArtformatReturns or sets the WordArt type for the specified text frame. Read/write
WordWrapDetermines whether lines of text break automatically to fit inside the shape. Read/write
© 2018 Microsoft