allchild
Return all direct children of graphics objects.
📝Syntax
h = allchild(objhandles)
📥Input Arguments
Parameter Description
objhandles graphics object or array of graphics objects.
📤Output Arguments
Parameter Description
h column array containing all direct child graphics objects.
📄Description

allchild returns direct children regardless of their HandleVisibility value.

For groot, it returns all figures in root child order, including figures hidden from the Children property while ShowHiddenHandles is 'off'.

💡Examples
close all
f = figure('Visible', 'off');
ax = axes('Parent', f, 'HandleVisibility', 'off');
h = allchild(f)
🔗See Also
findallfindobjgroot
🕔Version History
Version Description
1.17.0 initial version
Edit this page on GitHub