PenColor Property

Read-only. Returns an instance of the Color object, that contains information about the line color of the shape.

Applies to: Shape object, Style object

Syntax

[[Set] colorRet =] object.PenColor

The PenColor property syntax has these parts:

Part Description
object

Required. An expression that returns an object in the Applies to list.

colorRet Optional. A Color type variable.

Remarks

Shape object:
The PenColor property is also a table parameter of the shape, that is, its value can be described by a formula. The instance of the Color object, that contains the PenColor property is not changed, instead, the color components contained in PenColor are changed. To work with the PenColor property as with a table parameter, use the constant tag CDPT_LINECOLOR.

Style object:
When a style is assigned to a shape, the parameters of the PenColor property of the style are set to the PenColor property of the shape. PenColor is only effective when the HasPenAttr property of this style is True.

 

See Also

DefPenColor property, HasPenAttr property, PenPattern property, PenWeight property, Color object