Table of contents
TOC
Collapse the table of content
Expand the table of content

WrapFormat.Side Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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 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.

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
© 2018 Microsoft