Table of contents
TOC
Collapse the table of content
Expand the table of content

PictureFormat.TransparencyColor Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Returns or sets an MsoRGBType constant that represents the transparency color. Read/write.

Syntax

expression. TransparencyColor

_expression_A variable that represents a PictureFormat object.

Return Value

MsoRGBType

Example

This example creates a picture on the first page and sets the transparency color to black.

Sub SetTransparentColor() 
 With ActiveDocument.Pages(1).Shapes.AddPicture( _ 
 FileName:="C:\My Pictures\Sample.gif", LinkToFile:=msoFalse, _ 
 SaveWithDocument:=msoTrue, Left:=36, Top:=36) 
 .PictureFormat.TransparencyColor = RGB(Red:=255, Green:=255, Blue:=255) 
 End With 
End Sub
© 2018 Microsoft