ImageGear .NET v25.2 - Updated
MarkCut(ImGearARTMark) Method
Example 




ImageGear.Art Assembly > ImageGear.ART Namespace > ImGearARTPage Class > MarkCut Method : MarkCut(ImGearARTMark) Method
Mark to cut.
Cuts the specified mark from the annotation page to the Windows clipboard.
Syntax
'Declaration
 
Public Overloads Sub MarkCut( _
   ByVal mark As ImGearARTMark _
) 
'Usage
 
Dim instance As ImGearARTPage
Dim mark As ImGearARTMark
 
instance.MarkCut(mark)
public void MarkCut( 
   ImGearARTMark mark
)
public: void MarkCut( 
   ImGearARTMark* mark
) 
public:
void MarkCut( 
   ImGearARTMark^ mark
) 

Parameters

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

Reference

ImGearARTPage Class
ImGearARTPage Members
Overload List
ImGearARTMark Class

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