ImageGear for Silverlight
Iterating Through Marks
Send Feedback
ImageGear for Silverlight User Guide > Using ImageGear for Silverlight > Using ImageGear.ART Namespace > Operating with ART Marks > Iterating Through Marks

Glossary Item Box

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.
pageView1.Invalidate();

 

 

©2013. Accusoft Corporation. All Rights Reserved.