PictureFormat.HorizontalPictureLocking property (Publisher)
Returns or sets a PbHorizontalPictureLocking constant indicating where newly inserted pictures appear in relation to the specified frame. Read/write.
Syntax
expression.HorizontalPictureLocking
expression A variable that represents a PictureFormat object.
Return value
PbHorizontalPictureLocking
Remarks
The HorizontalPictureLocking property value can be one of the PbHorizontalPictureLocking constants declared in the Microsoft Publisher type library.
Example
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
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.