ImageGear for C and C++ on Windows v21.0 - Updated
User Guide / How to Work with ... / Annotations / New Annotation API: ArtX / How to... / Manage Annotations / Iterate through Annotations
In This Topic
    Iterate through Annotations
    In This Topic

    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)
    {
    ...
    }
    }