DistanceLeft Property
Applies To
WrapFormat object.
Description
Returns or sets the distance (in points) between the document text and the left edge of the text-free area surrounding the specified shape. The size and shape of the specified shape, together with the values of the Type and Side properties of the WrapFormat object, determine the size and shape of this text-free area. Read/write Single.
See Also
DistanceBottom property, DistanceRight property, DistanceTop property, Side property, Type property, WrapFormat object.
Example
This example adds an oval to the active document and specifies that the document text wrap tightly around 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 oval.
Set myOval = ActiveDocument.Shapes.AddShape(msoShapeOval, 0, 0, 200, 50)
With myEll.WrapFormat
.Type = wdWrapTight
.Side = wdWrapBoth
.DistanceTop = InchesToPoints(0.1)
.DistanceBottom = InchesToPoints(0.1)
.DistanceLeft = InchesToPoints(0.1)
.DistanceRight = InchesToPoints(0.1)
End With