CimPen.Style (property)

Gets and sets the pen style.
Syntax: ApPenStyleEnum = object.Style
object.Style = ApPenStyleEnum
Description: CimPen.Style contains the pen style. The style is what determines how the line looks.

The value of this property defaults to apPenSolid except in the grid's pen, which defaults to apPenDot. Since this is a default property, you can omit it when you reference it.


The following CimView script excerpt sets the first series' pen style to dash:
cimOleObj.Series.Item(0).Pen.Style = apPenDash

Since this is a default property, the previous script can also be written ommitting the Style property:
cimOleObj.Series.Item(0).Pen = apPenDash