Search
Diagram.CopySelection Method (DiagramItemCollection, Boolean, Boolean)
See Also
 





Creates a copy of the specified objects and groups.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public SelectionCopy CopySelection (
    DiagramItemCollection selectedItems,
    bool unconnectedLinks,
    bool copyGroups
)

Visual Basic  Copy Code

Public Function CopySelection( _
    selectedItems As DiagramItemCollection, _
    unconnectedLinks As Boolean, _
    copyGroups As Boolean _
) As SelectionCopy

 Parameters

selectedItems

A list of items to copy.

unconnectedLinks

true to allow copying unconnected links, or false otherwise.

copyGroups

true to copy group information, or false otherwise.

 Return Value

An instance of the SelectionCopy class.

 Remarks

Call PasteSelection to add the copied objects to a target diagram.

 See Also