Search
Diagram.PasteSelection Method
See Also
 





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

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public bool PasteSelection (
    Diagram doc,
    SelectionCopy data,
    CompositeCmd cmd,
    float dx,
    float dy
)

Visual Basic  Copy Code

Public Function PasteSelection( _
    doc As Diagram, _
    data As SelectionCopy, _
    cmd As CompositeCmd, _
    dx As Single, _
    dy As Single _
) As Boolean

 Parameters

doc
A Diagram object to which the items should be added.
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