Share via


WrapFormat.Side Property

Publisher Developer Reference

Returns or sets a PbWrapSideType constant that indicates whether text should wrap around a shape. Read/write.

Syntax

expression.Side

expression   A variable that represents a WrapFormat object.

Return Value
PbWrapSideType

Remarks

The Side property value can be one of the PbWrapSideType constants declared in the Microsoft Office Publisher type library.

Example

This example adds an oval to the first page of the active publication and specifies that text wrap around both the left and right sides of the oval.

Visual Basic for Applications
  Sub SetTextWrapFormatProperties()
    With ActiveDocument.Pages(1).Shapes.AddShape(Type:=msoShapeOval, _
            Left:=36, Top:=36, Width:=100, Height:=35)
        With .TextWrap
            .Type = pbWrapTypeSquare
            .Side = pbWrapSideBoth
        End With
    End With
End Sub

See Also