Cancel
Showing results for 
Search instead for 
Did you mean: 

How to get stacking 'parent' of an annotation

Legend
Legend

I need to identify the annotation a stacked annotation is the child of.

 

I tried the alignedAnnotation property of the annotations AssociativeOriginData but this is always null.

 

Annotation.AssociativeOriginData assocOrigin = childNote.getAssociativeOrigin();
Annotation parentNote = assocOrigin.alignedAnnotation; //null!!!

ideas / suggestions are welcome

Jan Böttcher
2 REPLIES

Re: How to get stacking 'parent' of an annotation

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Check the .OriginType of the associative origin, then get the corresponding alignment object.

Betreff: How to get stacking 'parent' of an annotation

Legend
Legend

Smiley Frustrated

 

Thanks to all who bothered to read my question.

 

I used Annotation.AssociativeOriginData.offsetAnnotation to set the parent of the stacked annotation (which is completely right) and mistakenly used Annotation.AssociativeOriginData.alignedAnnotation to query it later (completely nonsens).

 

Jan Böttcher