Share via


HorizontalPictureLocking Property [Publisher 2003 VBA Language Reference]

PbHorizontalPictureLocking

PbHorizontalPictureLocking can be one of these PbHorizontalPictureLocking constants.
pbHorizontalLockingLeft New pictures are inserted along the left edge of the frame.
pbHorizontalLockingNone New pictures are inserted in the middle between the left and right edges of the frame.
pbHorizontalLockingRight New pictures are inserted along the right edge of the frame.
pbHorizontalLockingStretch New pictures are horizontally stretched to the full width of the frame.

expression.HorizontalPictureLocking

expression Required. An expression that returns one of the objects in the Applies To list.

Example

The following example locks the specified picture to the top 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

Applies to | PictureFormat Object