Partager via


PictureFormat.TransparencyColor Property

Returns or sets the transparent color for the specified picture as a red-green-blue (RGB) value. Read/write.

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

Syntax

'Declaration
Property TransparencyColor As Integer
    Get
    Set
'Usage
Dim instance As PictureFormat
Dim value As Integer

value = instance.TransparencyColor

instance.TransparencyColor = value
int TransparencyColor { get; set; }

Property Value

Type: System.Int32

Remarks

For this property to take effect, the TransparentBackground property must be set to true.

This property applies to bitmaps only.

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 false. If your picture has a transparent color and the Visible property of the picture's FillFormat object is set to true, the picture's fill will be visible through the transparent color, but objects behind the picture will be obscured.

See Also

Reference

PictureFormat Interface

PictureFormat Members

Microsoft.Office.Interop.PowerPoint Namespace