Defining Inheritance
You define inheritance to enable attribute inheritance from an element containing other elements, for example, to control a specific attribute of an entire group of elements.
To define inheritance:
- In Graphics Editor, in the Objects pane, select the parent element from which you want to use an attribute, for example, Group.
- In the Properties pane, right-click anywhere and then click Add.
- In the Add a Custom Attribute dialog box, type a name for the attribute that you want child elements to inherit, for example, Fill.
- In the Objects pane, select the elements that are to inherit attributes from the container element to which they belong.
- In the Properties pane, delete the attribute that you want the container element to control.
- Click Remove.
NOTE: Make sure that the attribute that you add on the container element has a corresponding attribute on the inheriting elements. For example, Fill. Corresponding attributes must have identical names.
NOTE: You can override the inheritance from a container element by keeping the attribute on an element that belongs to the container element. This is useful when you want a group of elements in the same container element to inherit an attribute, but have one or a few elements in that container element, which should keep their individual attributes.