|MATLAB Function Reference|
Get ancestor of graphics object
p = ancestor(h,type)
returns the handle of the closest ancestor of
h, if the ancestor is one of the types of graphics objects specified by
type can be:
If MATLAB cannot find an ancestor of
h that is one of the specified types, then
p as empty.
p as empty but does not issue an error if
h is not the handle of a Handle Graphics object.
p = ancestor(h,type,'toplevel')
returns the highest-level ancestor of
h, if this type appears in the
Create some line objects and parent them to an hggroup object.
Now get the ancestor of the lines.
Now get the top-level ancestor
© 1994-2005 The MathWorks, Inc.