Certain graphics objects can contain other objects. Consider a graph, for example. In a graph, an object like a line represents data . Normally, the parent of the line is an axes (i.e., the handle of the line's Parent property is set to the handle of the axes that contains it). A figure is normally the parent of an axes. A typical object diagram of a graph looks like the next figure.
When graphs become more complicated and represent data with multiple objects, you can group these objects together so you can perform operations on the group as a whole.
The following sections discuss how to use two container objects that group axes children within a graph and user interface components within a figure.