PictureFormat.TransparentBackground Property
Returns or sets whether the specified picture format uses a transparent background.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.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. 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.