ImageGear for Silverlight
RemoveMarks() Method
See Also  Example Send Feedback
ImageGear20.Art Assembly > ImageGear.ART Namespace > ImGearARTPage Class > RemoveMarks Method : RemoveMarks() Method




Glossary Item Box

Deletes all marks from the annotation page.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Remarks

The method also deletes all Groups groups of the annotation page and resets following properties to their default values:

Example

C#Copy Code
ImGearPage igPage = _igPage;
ImGearARTPage igArtPage;

// Load the ImGearARTPage from the local file
OpenFileDialog dlg = new OpenFileDialog();
if (dlg.ShowDialog() != true)
    return;
using (FileStream file = dlg.File.OpenRead())
    igArtPage = ImGearART.LoadPage(file, 0);

// Create new presentation page display with default display settings.
ImGearPresentationPageDisplay pageDisplay = new ImGearPresentationPageDisplay();

// Initialize presentation page display with image and annotations.
pageDisplay.Page = igPage;
pageDisplay.ARTPage = igArtPage;

// Export presentation page display to ImGearRasterPage.
ImGearRasterPage igNewPage = pageDisplay.Export();
pageView.Page = igNewPage;

// Clear the annotations from the art page.
igArtPage.RemoveMarks();
pageView.Update();
Visual BasicCopy Code
Dim igPage As ImGearPage
Dim igArtPage As ImGearARTPage

' Load the ImGearARTPage from the local file
Dim dlg As New OpenFileDialog()
If dlg.ShowDialog() <> True Then
    Return
End If

Using file As FileStream = dlg.File.OpenRead()
    igArtPage = ImGearART.LoadPage(file, 0)
End Using

' Create new presentation page display with default display settings.
Dim pageDisplay As New ImGearPresentationPageDisplay()

' Initialize presentation page display with image and annotations.
pageDisplay.Page = _igPage
pageDisplay.ARTPage = igArtPage

' Export presentation page display to ImGearRasterPage.
igPage = pageDisplay.Export()
pageView.Page = igPage

' Clear the annotations from the art page.
igArtPage.RemoveMarks()
pageView.Update()

See Also

©2013. Accusoft Corporation. All Rights Reserved.