IWxContainer.ChildShapes

Syntax

ChildShapes: IWxShape;

Description

The ChildShapes property returns a collection of shapes that are direct child objects.

Only an object group or a workspace can have child objects.

Example

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

Sub UserProc;

Var

ws: IWxWorkspace;

Shape : IWxShape;

Group : IWxGroup;

Begin

ws.BeginUpdate;

 

Group := ws.Shapes.FindById("Shape 3") As IWxGroup;

Shape := Group.ChildShapes.Item(0);

Shape.Style.BackgroundBrushForeColor := GxColor.FromName("Red");

 

ws.EndUpdate;

End Sub UserProc;

After executing the example the background of one object belonging to a group is changed.

See also:

IWxContainer