Partager via


PictureFormat.TransparentBackground Property

Determines whether parts of the picture that are the color defined as the transparent color appear transparent. Applies to bitmaps only. Read/write.

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

Syntax

'Declaration
Property TransparentBackground As MsoTriState
    Get
    Set
'Usage
Dim instance As PictureFormat
Dim value As MsoTriState

value = instance.TransparentBackground

instance.TransparentBackground = value
MsoTriState TransparentBackground { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoTriState

Remarks

Use the TransparencyColor property to set the transparent color.

If you want to be able to see through the transparent parts of the picture all the way to the objects behind the picture, you must set the Visible property of the picture's FillFormat object to msoFalse. If your picture has a transparent color and the Visible property of the picture's FillFormat object is set to msoTrue, the picture's fill will be visible through the transparent color, but objects behind the picture will be obscured.

The value of the TransparentBackground property can be one of these MsoTriState constants.

Constant

Description

msoFalse

Parts of the picture that are the color defined as the transparent color do not appear transparent.

msoTrue

Parts of the picture that are the color defined as the transparent color appear transparent.

See Also

Reference

PictureFormat Interface

PictureFormat Members

Microsoft.Office.Interop.PowerPoint Namespace