Share via


WrapFormat.Type Property

Publisher Developer Reference

Specifies how text wraps around the specified shape. Read/write.

Syntax

expression.Type

expression   A variable that represents a WrapFormat object.

Remarks

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

Example

The following example adds an oval to the active publication and specifies that the publication text wrap around both the left and right sides of the square that surrounds the oval.

Visual Basic for Applications
  Sub SetTextWrapType()
    Dim shpOval As Shape
Set shpOval = ActiveDocument.Pages(1).Shapes.AddShape( _
    Type:=msoShapeOval, Left:=36, Top:=36, _
    Width:=100, Height:=35)

With shpOval.TextWrap
    .<strong>Type</strong> = pbWrapTypeSquare
    .Side = pbWrapSideBoth
End With

End Sub

See Also