Bewerken

Delen via


WrapFormat.Side property (Publisher)

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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.