ImageGear Professional DLL v17.1 for Windows Accusoft
Iterating through Marks
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > User Guide > Using ImageGear > Annotating Images > New Annotation API: ArtX > Working with ART Marks > Iterating through Marks

Glossary Item Box

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

©2012. Accusoft Corporation. All Rights Reserved.