PenWeight Property

A Long type property. The width of the shape's lines.

Applies to: Shape object, Style object

Syntax

[[Let] longRet =] object.PenWeight

[Let] object.PenWeight = penWeightSet

The PenWeight property syntax has these parts:

Part Description
object Required. An expression that returns an object in the Applies to list.
longRet Optional. A Long type variable.
penWeightSet Required. An expression that returns a Long value.

Remarks

Line weight is set in points (1 pt = 1/72 inch).

Shape object:
The PenWeight property is also a table parameter of the shape, that is, its value can be described by a formula. To work with PenWeight as a table parameter, use the CDPT_LINEWEIGHT constant tag.

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

 

See Also

DefPenWeight property, HasPenAttr property, PenPattern property, PenColor property