MindFusion.Wpf Pack Programmer's Guide
Diagram.PasteSelection Method
See Also
 





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

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

 Syntax

C#  Copy Code

public bool PasteSelection (
    SelectionCopy data,
    CompositeCmd cmd,
    Vector offset
)

Visual Basic  Copy Code

Public Function PasteSelection( _
    data As SelectionCopy, _
    cmd As CompositeCmd, _
    offset As Vector _
) As Boolean

 Parameters

data

A SelectionCopy object returned by a previous call to CopySelection.

cmd

A CompositeCmd object where the items state should be recorded for later undo or redo.

offset

Offset of pasted items from their original positions.

 Return Value

true if data contains any items, or false otherwise.

 Remarks

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

 See Also

Diagram Members
Diagram Class
MindFusion.Diagramming.Wpf Namespace
PasteFromClipboard Method