DefPenColor Property

Read-only. Returns an instance of the Color object, that contains information about the line color set by default to every new shape created in the document.

Applies to: Document object

Syntax

[[Set] colorRet =] object.DefPenColor

The DefPenColor property syntax has these parts:

Part Description
object

Required. An expression that returns a Document object.

colorRet Optional. A Color type variable.

Remarks

When a new shape is created in the document, the value of the properties of the Color object which contains the DefPenColor property is set to the corresponding properties of the Color object which contains the PenColor property of the new shape.

 

See Also

DefPenPattern property, DefPenWeight property, PenColor property, Color object, Shape object