ImageGear .NET - Updated
Iterate through Annotations
User Guide > How to Work with... > ART Mark Annotations > Manage Annotations > Iterate through Annotations

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

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

Copy Code
// Build a list of selected marks.
ArrayList igARTMarks = new ArrayList();
foreach (ImGearARTMark igARTMark in igARTPage)
    if (igArtPage.MarkIsSelected(igARTMark))
// Delete the marks.
// Redraw the view.