MindFusion WinForms Programmer's Guide
DiagramView.CopyToClipboard Method (Boolean, Boolean)
See Also
 





Copies the current selection of items to the clipboard.

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

 Syntax

C#  Copy Code

public bool CopyToClipboard (
    bool persist,
    bool groups
)

Visual Basic  Copy Code

Public Function CopyToClipboard( _
    persist As Boolean, _
    groups As Boolean _
) As Boolean

 Parameters

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

 Return Value

true if items were successfully copied; otherwise, false.

 Remarks

Call this method when writing message handler for the Copy command from the Edit menu of your application. MindFusion.Diagramming does not provide keyboard interface for clipboard operations, so you might assign a CTRL+C shortcut to this command.

The first overloaded method simply calls this one, setting false as the value of the groups argument. When calling this method with groups 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.

 See Also

CopyToClipboard Method Overload List
DiagramView Members
DiagramView Class
MindFusion.Diagramming.WinForms Namespace
CutToClipboard Method
PasteFromClipboard Method