Share via


ShapeRange.PictureFormat Property

Returns a PictureFormat object that contains picture formatting properties for the specified shape. Read-only.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
ReadOnly Property PictureFormat As PictureFormat
    Get
'Usage
Dim instance As ShapeRange
Dim value As PictureFormat

value = instance.PictureFormat
PictureFormat PictureFormat { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.PictureFormat
PictureFormat

Remarks

This property applies to Shape or ShapeRange objects that represent pictures or OLE objects.

Examples

This example sets the brightness and contrast for shape one on myDocument. Shape one must be a picture or an OLE object.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes(1).PictureFormat.Brightness = 0.3

    .Contrast = .75

End With

See Also

Reference

ShapeRange Interface

ShapeRange Members

Microsoft.Office.Interop.PowerPoint Namespace