IWxStyle.Assign

Syntax

Assign(StyleFrom: IWxStyle);

Parameters

StyleFrom - the style to be inherited.

Description

The Assign method is used to inherit all properties of another style.

Example

Executing the example requires an existing ws object of the IWxWorkspace type.

Sub UseProc;

Var

ws: IWxWorkspace;

Shape, Shape1 : IWxShape;

FormStyle: IWxStyle;

Begin

ws.BeginUpdate;

Shape := ws.Shapes.Item(0);

Shape1 := ws.Shapes.Item(1);

FormStyle := Shape.Style;

Shape1.Style.Assign(FormStyle);

ws.EndUpdate;

End Sub UseProc;

After executing the example the Shape1 object inherits all formatting of the Shape object.

See also:

IWxStyle