// Array to hold a list of marks.
ArrayList igARTMarkList = new ArrayList();
// Add all valid marks with id's between 0 to 999 to an array.
for (int i = 0; i < 1000; ++i)
{
if (igARTPage.MarkIsValid(i))
igARTMarkList.Add(igARTPage.MarkGet(i));
}
// Copy the marks from the page to the clipboard.
igARTPage.CopyMarks(igARTMarkList);
// Move all the marks
foreach (ImGearARTMark igARTMark in igARTPage)
{
igARTMark.Move(50, 50);
}
//Paste the original marks back onto the page.
igARTPage.PasteMarks();
' Array to hold a list of marks.
Dim igARTMarkList As New ArrayList()
For i As Integer = 0 To 999
' Add all valid marks with id's between 0 to 999 to an array.
If igARTPage.MarkIsValid(i) Then
igARTMarkList.Add(igARTPage.MarkGet(i))
End If
Next
' Copy the marks from the page to the clipboard.
igARTPage.CopyMarks(igARTMarkList)
' Move all the marks
For Each igARTMark As ImGearARTMark In igARTPage
igARTMark.Move(50, 50)
Next
'Paste the original marks back onto the page.
igARTPage.PasteMarks()