Available in LEADTOOLS Document and Medical Imaging toolkits.
Annotation Functions: Object Properties Grouping and Ungrouping Objects
L_AnnGetGrouping
L_AnnGroup
L_AnnSetGrouping
L_AnnUngroup