Style Object

The Style object describes the ConceptDraw document style. It allows to control the following style properties: line color, fill color, line weight, various text parameters, etc.

Properties

Character Read-only. Text display parameters for this style.
FillColor Read-only. The fill color.
FillPatColor Read-only. The pattern fill color.
FillPattern The pattern fill type.
HasCharAttr A flag that specifies whether the Character property is effective.
HasEndsAttr A flag that specifies whether the arrowhead properties for 1D shapes are effective: LineBegin, LineEnd and LineEndSize.
HasFillAttr

A flag that specifies whether the shape's fill properties are effective in this style: FillColor, FillPatColor and FillPattern.

HasParaAttr

A flag that specifies whether the Paragraph property is effective.

HasPenAttr

A flag that specifies whether the shape's line properties are effective in this style: PenColor, PenPattern and PenWeight.

HasShadowAttr

A flag that specifies whether the shape's shadow properties are effective in this style: ShadowColor, ShadowPatColor and ShadowPattern.

HasTxtblockAttr

A flag that specifies whether the TextBlock property is effective.

LineBegin The begin arrowhead type of a 1D-shape.
LineEnd The end arrowhead type of a 1D-shape.
LineEndSize The size of begin and end arrowheads of a 1D-shape.
Name Read-only. The name of the style. The unique name that defines the style within the scope of the style collection of the document.
Paragraph Read-only. Paragraph parameters.
PenColor Read-only. The color of the shape's lines.
PenPattern The shape's line pattern.
PenWeight The shape's line weight.
ShadowColor Read-only. The shape's shadow color.
ShadowPatColor Read-only. The shape's shadow pattern color.
ShadowPattern The shape's shadow pattern type.
TextBlock Read-only. The text block parameters.

Remarks

Each ConceptDraw document has its own style collection. The Document object has methods for working with style collections. However, styles are intended for describing properties of ConceptDraw shapes. So, it's possible to apply style properties to a ConceptDraw shape by using the SetStyle method of the Shape object. To set the default style for new shapes, created in the document, use the DefStyle property of the Document object.

An instance of the Style object can be retrieved by using the following methods of the Document object: AddStyle method, Style method, StyleByName method.

Alternatively, the style properties can be changed from within ConceptDraw, menu "Format->Define Styles".

 

See Also

Character object, Color object, Document object, Paragraph object, TextBlock object, Shape object