User Guide > Concepts > Upgrading from v16 or Earlier > Resolve Assembly Cross-Dependencies > ImGearAnnotationPage Class |
The ARTPage Property of ImGearPageDisplay Class uses ImGearAnnotationPage Class type. ImGearAnnotationPage Class is an abstract class that does not have any public members. If the application works with annotations, it shall cast ImGearPageDisplay.ARTPage Property to the actual class ImGearARTPage Class, defined in the ImageGear22.Art assembly. The following two examples demonstrate this:
ImageGear v16 Example |
Copy Code |
---|---|
ImGearPage page; ImGearPageView pageView = new ImGearPageView(); // Load an image into ImGearPage, create ImGearPageDisplay for it, and load annotations // a // Now remove annotations ImGearARTPage artPage = pageView.Display.ARTPage; if (artPage != null) artPage.RemoveMarks(); |
ImageGear v17 Example |
Copy Code |
---|---|
ImGearPage page; ImGearPageView pageView = new ImGearPageView(); // Load an image into ImGearPage, create ImGearPageDisplay for it, and load annotations // a // Now remove annotations ImGearARTPage artPage = pageView.Display.ARTPage as ImGearARTPage; if (artPage != null) artPage.RemoveMarks(); |