次の方法で共有


Color.PaletteEntry Property

Visio Automation Reference

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

Version Information
 Version Added:  Visio 4.0

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:

Visual Basic for Applications
      paletteentry == r+256(b+256(g+256f))

See Also