PaletteEntry Property [Visio 2003 SDK Documentation]
Gets or sets the red, green, blue, and flags components of a color.
intRet = object**.PaletteEntry**
object**.PaletteEntry** = intVal
intRet Long. The current value of the color's components.
object Required. An expression that returns a Color object.
intVal Required Long. The new value of the color's components.
Version added
4.0
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))
Applies to | Color object
See Also | Blue property | Flags property | Green property | Red property