// Build a list of selected marks.
ArrayList igARTMarks = new ArrayList();
ImGearARTPage igARTPage = (pageView.Display.ARTPage as ImGearARTPage);
foreach (ImGearARTMark igARTMark in igARTPage)
{
if (igARTPage.MarkIsSelected(igARTMark))
igARTMarks.Add(igARTMark);
}
// Delete the marks.
igARTPage.RemoveMarks(igARTMarks);
// Redraw the view.
pageView.Update();
' Build a list of selected marks.
Dim igARTMarks As New ArrayList()
Dim igARTPage As ImGearARTPage = TryCast(pageView.Display.ARTPage, ImGearARTPage)
For Each igARTMark As ImGearARTMark In igARTPage
If igARTPage.MarkIsSelected(igARTMark) Then
igARTMarks.Add(igARTMark)
End If
Next
' Delete the marks.
igARTPage.RemoveMarks(igARTMarks)
' Redraw the view.
pageView.Update()