Color Property

Read-only. Returns a Color object that corresponds to the color of an instance of the object from the Applies To list.

Applies to: Character object, Layer object

Syntax

[[Set] colorRet =] object.Color

The Color property syntax has these parts:

Part Description
object Required. An expression that returns an object from the Applies to list.
colorRet Optional. A Color type variable.

Remarks

When object is a block of characters, its color means the color of all characters in this character block. The Color property is also a table parameter of the shape to which this character block belongs, that is, its value can be described by a formula. To work with Color as a table parameter, use the CDPT_CHAR_COLOR constant tag.

When object is a layer, its color means the color of all shapes that belong to that layer, providing the layer is colored (the Colored property).

 

See Also

Colored property, Count property, SetCharColor method, Color object