The shape sheets of the child shapes can reference the shape sheet of the group. This is achieved by adding the Group! prefix before the group local cell name (see Formula Cell References for more information about cell references). For example:
C# |
Copy Code
|
---|---|
// make the shape1 width half the width of the group shape1.Transform.Width.Formula = "Group!Width/2"; |
Visual Basic |
Copy Code
|
---|---|
' make the shape1 width half the width of the group shape1.Transform.Width.Formula = "Group!Width/2" |
This yields to incredible flexibility and interdependency between child shapes their groups, which allows the creation of very complex shapes.