ImageGear for .NET
CopyMarks(ArrayList) Method
See Also  Example Send Feedback
ImageGear21.Art Assembly > ImageGear.ART Namespace > ImGearARTPage Class > CopyMarks Method : CopyMarks(ArrayList) Method




marks
Collection of marks to copy.

Glossary Item Box

Copies collection of specified marks to the Windows clipboard.

Syntax

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

Parameters

marks
Collection of marks to copy.

Remarks

The Clipboard API can only be used in threads set to single thread apartment (STA) mode.

Example

C#Copy Code
// 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();
Visual BasicCopy Code
' 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()

See Also

©2013. Accusoft Corporation. All Rights Reserved.