Side Property
Returns or sets a value that indicates whether the document text should wrap on both sides of the specified shape, on either the left or right side only, or on the side of the shape that's farthest from the page margin. If the text wraps on only one side of the shape, there's a text-free area between the other side of the shape and the page margin. Read/write WdWrapSideType.
WdWrapSideType can be one of these WdWrapSideType constants. |
wdWrapBoth |
wdWrapLargest |
wdWrapLeft |
wdWrapRight |
expression.Side
expression Required. An expression that returns a WrapFormat object.
Example
This example adds an oval to the active document and specifies that the document text wrap around the left and right sides of the square that circumscribes the oval. The example sets a 0.1-inch margin between the document text and the top, bottom, left side, and right side of the square.
Set myOval = ActiveDocument.Shapes.AddShape(msoShapeOval, _
0, 0, 200, 50)
With myEll.WrapFormat
.Type = wdWrapSquare
.Side = wdWrapBoth
.DistanceTop = InchesToPoints(0.1)
.DistanceBottom = InchesToPoints(0.1)
.DistanceLeft = InchesToPoints(0.1)
.DistanceRight = InchesToPoints(0.1)
End With