CGXStyle::ChangeStyle
virtual void ChangeStyle(const CGXStyle& p, GXModifyType mt);
p
Reference to source style object.
mt
-
Specifies the modifytype:
- gxApplyNew for applying only new attributes.
- gxOverride for overriding existing attributes.
- gxCopy for copying the style.
gxExclude for resetting attributes.
Remarks
Applies a new style on the current style.
The following operations are supported:
·Applying only new attributes (gxApplyNew): Only those attributes are copied from the source style to the destination style which are included in the source style and not yet included in the destination style.
·Overriding attributes (gxOverride): Those attributes are copied from the source style to the destination style which are included in the source style no matter if they are included in the destination style.
·Copying the style (gxCopy): All attributes are copied from the source style to the destination style. Attributes which are not included in the source style will be removed from the destination style.
·Resetting attributes (gxExclude): Attributes which are included in the source style will be removed from the destination style.