Search
Diagram.PasteSelection Method
See Also
 





Adds the specified items and groups to the specified diagram document.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public bool PasteSelection (
    SelectionCopy data,
    CompositeCmd cmd,
    double dx,
    double dy
)

Visual Basic  Copy Code

Public Function PasteSelection( _
    data As SelectionCopy, _
    cmd As CompositeCmd, _
    dx As Double, _
    dy As Double _
) As Boolean

 Parameters

data
A SelectionCopy object returned by a previous call to CopySelection.
cmd
CompositeCmd object where the items state should be recorded for later undo or redo.
dx
Horizontal offset of pasted items from their original positions.
dy
Vertical offset of pasted items from their original positions.

 Return Value

true if data contains any items; otherwise, false.

 Remarks

This method can be used in conjunction with CopySelection to copy selected items from one Diagram instance to another.

 See Also