ImageGear .NET v24.12 - Updated
MarkCopy(ImGearARTMark) Method
Example 




ImageGear24.Art Assembly > ImageGear.ART Namespace > ImGearARTPage Class > MarkCopy Method : MarkCopy(ImGearARTMark) Method
Mark to copy.
Copies the specified mark to the Windows clipboard.
Syntax
'Declaration
 
Public Overloads Sub MarkCopy( _
   ByVal mark As ImGearARTMark _
) 
'Usage
 
Dim instance As ImGearARTPage
Dim mark As ImGearARTMark
 
instance.MarkCopy(mark)
public void MarkCopy( 
   ImGearARTMark mark
)
public: void MarkCopy( 
   ImGearARTMark* mark
) 
public:
void MarkCopy( 
   ImGearARTMark^ mark
) 

Parameters

mark
Mark to copy.
Remarks
The Clipboard API can only be used in threads set to single thread apartment (STA) mode.
Example
// Copy first mark found to be selected to the clipboard
foreach (ImGearARTMark igARTMark in igARTPage)
{
    if (igARTPage.MarkIsSelected(igARTMark))
    {
        igARTPage.MarkCopy(igARTMark);
        break;
    }
}
' Copy first mark found to be selected to the clipboard
For Each igARTMark As ImGearARTMark In igARTPage
    If igARTPage.MarkIsSelected(igARTMark) Then
        igARTPage.MarkCopy(igARTMark)
        Exit For
    End If
Next
See Also

Reference

ImGearARTPage Class
ImGearARTPage Members
Overload List
ImGearARTMark Class