TextBox class

TextBox class

Defines attributes that specify how a text is displayed inside a shape. To learn more, visit the Working with Shapes documentation article.

Remarks

Use the Shape.textBox property to access text properties of a shape. You do not create instances of the TextBox class directly.

Properties

NameDescription
fitShapeToTextDetermines whether Microsoft Word will grow the shape to fit text.
internalMarginBottomSpecifies the inner bottom margin in points for a shape.
internalMarginLeftSpecifies the inner left margin in points for a shape.
internalMarginRightSpecifies the inner right margin in points for a shape.
internalMarginTopSpecifies the inner top margin in points for a shape.
layoutFlowDetermines the flow of the text layout in a shape.
nextReturns or sets a TextBox that represents the next TextBox in a sequence of shapes.
noTextRotationGets or sets a boolean value indicating either text of the TextBox should not rotate when the shape is rotated.
parentGets a parent shape for the TextBox.
previousReturns a TextBox that represents the previous TextBox in a sequence of shapes.
textBoxWrapModeDetermines how text wraps inside a shape.
verticalAnchorSpecifies the vertical alignment of the text within a shape.

Methods

NameDescription
breakForwardLink()Breaks the link to the next TextBox.
isValidLinkTarget(target)Determines whether this TextBox can be linked to the target TextBox.

See Also