Share via


WrapFormat.DistanceBottom Property

Publisher Developer Reference

When the Type property of the WrapFormat object is set to pbWrapTypeSquare, returns or sets a Variant that represents the distance (in points) between the document text and the bottom edge of the specified shape. Read/write.

Syntax

expression.DistanceBottom

expression   A variable that represents 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.

Visual Basic for Applications
  Sub AddNewShape()
    Dim shpOval As Shape
Set shpOval = ActiveDocument.Pages(1).Shapes _
    .AddShape(Type:=msoShapeOval, Left:=36, _
    Top:=36, Width:=100, Height:=35)
With shpOval.TextWrap
    .Type = pbWrapTypeSquare
    .Side = pbWrapSideBoth
    .DistanceAuto = msoFalse
    .DistanceTop = InchesToPoints(0.1)
    .<strong>DistanceBottom</strong> = InchesToPoints(0.1)
    .DistanceLeft = InchesToPoints(0.1)
    .DistanceRight = InchesToPoints(0.1)
End With

End Sub

See Also