constant indicating where newly inserted pictures appear in relation to the specified frame. Read/write.
PbVerticalPictureLocking can be one of these PbVerticalPictureLocking constants. |
pbVerticalLockingBottom New pictures are inserted along the bottom edge of the frame. |
pbVerticalLockingNone New pictures are inserted in the center between the top and bottom edges of the frame. |
pbVerticalLockingStretch New pictures are vertically stretched to the full height of the frame. |
pbVerticalLockingTop New pictures are inserted along the top edge of the frame. |
expression.VerticalPictureLocking
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