ImageGear for C and C++ on Windows v20.3 - Updated
Iterate through Annotations
User Guide > How to Work with ... > Annotations > New Annotation API: ArtX > How to... > Manage Annotations > Iterate through Annotations

Sometimes your application will need to iterate through the marks in an HIG_ARTX_PAGE object. This can be done by using a "foreach" mechanism:

For example, to delete all the selected marks, your application would do the following:

 
Copy Code
HIG_ARTX_PAGE hMark = NULL;IG_ARTX_page_mark_first(hArtPage, &hMark);
while (hMark != NULL)
{
AT_BOOL bSelected = FALSE;IG_ARTX_page_mark_is_selected(hArtPage, hMark, &bSelected);
if (bSelected)
{
...
}
}

Is this page helpful?
Yes No
Thanks for your feedback.