ImageGear for .NET
Iterating Through Marks

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();

 

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback