2.5.7.2 vColor

The vColor custom input type specifies a PtgColorRGB derived from a source token that MUST be a PtgColorRGB, vNumAny, PtgStr1, PtgCy, or PtgMissArg. It contains the following computed properties.

Value

This property specifies an RGB color value represented as a 4-byte signed integer derived from the source token value as follows.

If the source token type is a PtgColorRGB, Value is equal to the source token value.

If the source token can be interpreted as a vSignedLong, Value is equal to the color in the color table that is indexed by the value of the source token interpreted as a vSignedLong; if the value of the source token interpreted as a vSignedLong is not a valid index in the color table, Value is equal to the color at index zero in the color table.

In all other cases, the input argument is not valid.

Type

This property specifies a token type of PtgColorRGB.