Color.PaletteEntry Property (Visio)

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

Version Added: Visio 4.0

expression .PaletteEntry

expression A variable that represents a Color object.

Return Value

Long

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))
Show:
© 2015 Microsoft