TextFrame.WordWrap Property
Determines whether lines break automatically to fit inside the shape. Read/write.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property WordWrap As MsoTriState
Get
Set
'Usage
Dim instance As TextFrame
Dim value As MsoTriState
value = instance.WordWrap
instance.WordWrap = value
MsoTriState WordWrap { get; set; }
Property Value
Type: Microsoft.Office.Core.MsoTriState
MsoTriState
Remarks
The value of the WordWrap property can be one of these MsoTriState constants.
Constant |
Description |
---|---|
msoFalse |
Lines do not break automatically to fit inside the shape. |
msoTrue |
Lines break automatically to fit inside the shape. |
Examples
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