Export (0) Print
Expand All

TransparencyColor Property.TransparencyColor Property

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

Syntax

expression.TransparencyColor

expression   A variable that represents a TransparencyColor Property object.

Return Value
MsoRGBType

Example

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

Visual Basic for Applications
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



Community Additions

ADD
Show:
© 2015 Microsoft