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

ShapeRange.PictureFormat Property (Publisher)

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

Returns a PictureFormat object that contains picture formatting properties for the specified object. Applies to Shape or ShapeRange objects that represent pictures or OLE objects. Read-only.


expression. PictureFormat

_expression_A variable that represents a ShapeRange object.


This example sets the brightness and contrast for all pictures on the first page of the active publication.

Sub FixPictureContrastBrightness() 
 Dim shp As Shape 
 For Each shp In ActiveDocument.Pages(1).Shapes 
 If shp.Type = pbPicture Then 
 With shp.PictureFormat 
 .Brightness = 0.6 
 .Contrast = 0.6 
 End With 
 End If 
 Next shp 
End Sub
© 2018 Microsoft