ImageGear .NET v25.2 - Updated
CopyMarks(ArrayList) Method
Example 




ImageGear.Art Assembly > ImageGear.ART Namespace > ImGearARTPage Class > CopyMarks Method : CopyMarks(ArrayList) Method
Collection of marks to copy.
Copies collection of specified marks to the Windows clipboard.
Syntax
'Declaration
 
Public Overloads Sub CopyMarks( _
   ByVal marks As ArrayList _
) 
'Usage
 
Dim instance As ImGearARTPage
Dim marks As ArrayList
 
instance.CopyMarks(marks)
public void CopyMarks( 
   ArrayList marks
)
public: void CopyMarks( 
   ArrayList* marks
) 
public:
void CopyMarks( 
   ArrayList^ marks
) 

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
// 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()
See Also

Reference

ImGearARTPage Class
ImGearARTPage Members
Overload List

Is this page helpful?
Yes No
Thanks for your feedback.