ImageGear PDF v25.2 - Updated
Iterate through Annotations
Developer 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:

C#
Copy Code
// Build a list of selected marks.
ArrayList igARTMarks = new ArrayList();
foreach (ImGearARTMark igARTMark in igARTPage)
{
    if (igArtPage.MarkIsSelected(igARTMark))
        igARTMarks.Add(igARTMark);
}
// Delete the marks.
igArtPage.RemoveMarks(igARTMarks);
// Redraw the view.
imGearPageView1.Invalidate();

 

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