Select all descendants of a container

Select all descendants of a container

Hello guys,
 
I'm looking for an API available to select all descendants of a container, I didn't find anything yet, any ideas ?
Thanks
 
Best regards