Page 1 of 1

Group annotations

Posted: Thu Jun 16, 2022 5:07 pm
by goldrian
Hi!

I need to create grouped annotations, like a cross formed by two lines.

I can create a cross by drawing two single lines, but then the two lines are selected and edited individually.
Is there a way to group them?

(I have to create also more complex things, like arrows + circles + rectangles)

Or is there a way to create a custom annotation, or override the edit methods?

Thanks!

Re: Group annotations

Posted: Mon Jun 20, 2022 4:44 pm
by Hugo
Hi Goldrian,

Thank you for your question.

To group annotations you may want to create an entirely new annotation using the following method:
https://www.gdpicture.com/guides/gdpict ... Annot.html
https://www.gdpicture.com/guides/gdpict ... nt_EV.html

This would be the expected approach you should take.

Regards,
Hugo Cudd
Technical Support

Re: Group annotations

Posted: Wed Jun 22, 2022 4:03 pm
by goldrian
I'd like to create CustomAnnotations but, to do so, I have to drop the Wpf version and encapsulate the Form version in a WindowsFormHost.
That's not my favorite solution, I have a bad experience of WIndowsFormHost, but since it's the only one I'm trying to stick to this.