Cuts the currently selected items to the Windows clipboard.
Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms
C# Copy Code |
---|
public bool CutToClipboard ( |
Visual Basic Copy Code |
---|
Public Function CutToClipboard( _ |
true if items are successfully copied to clipboard; otherwise, false.
Call this method when writing message handler for the Cut command from the Edit menu of your application. MindFusion.Diagramming does not provide keyboard interface for clipboard operations, so you might assign a CTRL+X shortcut to this command.
When calling this method with the groups argument set to true, only the first level of groups attached to selected items are copied. In that case, the subordinated items included in the groups are copied too.
The method deletes all selected items after copying them to clipboard. That operation can be undone in the sense that deleted items are restored by calling UndoManager.Undo; however the clipboard data is not restored and the items remain in the clipboard available for further pasting.