Color.PaletteEntry property (Visio)

Gets or sets the red, green, blue, and flags components of a color. Read/write.

Syntax

expression.PaletteEntry

expression A variable that represents a Color object.

Return value

Long

Remarks

A color is represented by 1-byte red, green, and blue components. It also has a 1-byte flags field that indicates how you use the color. These correspond to members of the Windows PALETTEENTRY data structure. For details, search for "PALETTEENTRY" in the Microsoft Platform SDK on MSDN, the Microsoft Developer Network.

The value passed is four tightly packed BYTE fields. The correspondence between the PaletteEntry property and red, green, blue, and flags values is:

    paletteentry == r+256(b+256(g+256f))

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.