WordWrap Property
WordWrap property as it applies to the TextFrame object.
Determines whether lines break automatically to fit inside the shape. Read/write MsoTriState.
MsoTriState can be one of these MsoTriState constants. |
msoCTrue |
msoFalse |
msoTriStateMixed |
msoTriStateToggle |
msoTrue Lines break automatically to fit inside the shape. |
expression.WordWrap
expression Required. An expression that returns one of the objects in the Applies To list.
WordWrap property as it applies to the ParagraphFormat object.
Used only with Kanji characters. Read/write Long.
Example
As it applies to the TextFrame object.
This example adds a rectangle that contains text to myDocument
, and then turns off word wrapping in the new rectangle.
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes.AddShape(msoShapeRectangle, _
0, 0, 100, 300).TextFrame
.TextRange.Text = _
"Here is some test text that is too long for this box"
.WordWrap = False
End With