Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.69 KB

Word.PictureFormat.TransparentBackground.md

File metadata and controls

53 lines (33 loc) · 1.69 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PictureFormat.TransparentBackground property (Word)
vbawd10.chm164298860
vbawd10.chm164298860
Word.PictureFormat.TransparentBackground
8cbc6da7-e3c9-6d42-de48-ae82b3e5ff00
06/08/2017
medium

PictureFormat.TransparentBackground property (Word)

MsoTrue if the parts of the picture that are defined with a transparent color actually appear transparent. Use the TransparencyColor property to set the transparent color. Applies to bitmaps only. Read/write MsoTriState.

Syntax

expression.TransparentBackground

expression Required. A variable that represents a 'PictureFormat' object.

Remarks

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.

Example

This example sets the color returned by the RGB function as the transparent color for shape one in the active document. For the example to work, shape one must be a bitmap.

blueScreen = RGB(0, 0, 255) 
With ActiveDocument.Shapes(1) 
 With .PictureFormat 
 .TransparentBackground = msoTrue 
 .TransparencyColor = blueScreen 
 End With 
 .Fill.Visible = False 
End With

See also

PictureFormat Object

[!includeSupport and feedback]