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

WrapFormat Object (Publisher)

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

Represents all the properties for wrapping text around a shape or shape range.

Example

Use the TextWrap property to return a WrapFormat object. The following example adds an oval to the active publication and specifies that publication text wrap around the left and right sides of the square that circumscribes the oval. There will be a 0.1-inch margin between the publication text and the top, bottom, left side, and right side of the square.

Sub SetTextWrapFormatProperties() 
 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) 
 .DistanceBottom = InchesToPoints(0.1) 
 .DistanceLeft = InchesToPoints(0.1) 
 .DistanceRight = InchesToPoints(0.1) 
 End With 
End Sub

Properties

Name
Application
DistanceAuto
DistanceBottom
DistanceLeft
DistanceRight
DistanceTop
Parent
Side
Type
© 2018 Microsoft