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

PictureFormat.VerticalPictureLocking Property (Publisher)

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

Returns or sets a PbVerticalPictureLocking constant indicating where newly inserted pictures appear in relation to the specified frame. Read/write.


expression. VerticalPictureLocking

_expression_A variable that represents a PictureFormat object.

Return Value



The Vertical PictureLocking property value can be one of the PbVerticalPictureLocking constants declared in the Microsoft Publisher type library and shown in the following table.

pbVerticalLockingBottomNew pictures are inserted along the bottom edge of the frame.
pbVerticalLockingNoneNew pictures are inserted in the center between the top and bottom edges of the frame.
pbVerticalLockingStretchNew pictures are vertically stretched to the full height of the frame.
pbVerticalLockingTopNew pictures are inserted along the top edge of the frame.


The following example locks the specified picture to the upper-left corner of the picture frame. Shape one on page one of the active publication must be a picture frame for this example to work.

With ActiveDocument.Pages(1).Shapes(1).PictureFormat 
 .HorizontalPictureLocking = pbHorizontalLockingLeft 
 .VerticalPictureLocking = pbVerticalLockingTop 
End With
© 2018 Microsoft