Search
DiagramView.CutToClipboard Method (Boolean, Boolean)
See Also
 





Cuts the currently selected items to the Windows clipboard.

Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms

 Syntax

C#  Copy Code

public bool CutToClipboard (
    bool copy,
    bool groups
)

Visual Basic  Copy Code

Public Function CutToClipboard( _
    copy As Boolean, _
    groups As Boolean _
) As Boolean

 Parameters

copy
true if you want data to remain on the clipboard after this application exits; otherwise, false.
groups
true to cut item groups; otherwise, false.

 Return Value

true if items are successfully copied to clipboard; otherwise, false.

 Remarks

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.

 See Also