How To Copy / Paste Nodes In Essential Diagram
9 Jul 2019 / 1 minute to read
The following code snippet illustrates how you can copy / paste nodes (symbol, shape, or link) in Essential Diagram.
//Copy Code
this.diagram1.Controller.Copy();
//Paste Code
//If the data in the clipboard is of the type ClipboardNodeCollection, paste it onto the Diagram.
IDataObject clipboardData = Clipboard.GetDataObject();
if (clipboardData.GetDataPresent(typeof(ClipboardNodeCollection)))
{
this.diagram1.Controller.Paste();
}
'Copy Code
Me.diagram1.Controller.Copy()
'Paste Code
'If the data in the clipboard is of the type ClipboardNodeCollection, paste it onto the Diagram.
Dim clipboardData As IDataObject = Clipboard.GetDataObject()
If clipboardData.GetDataPresent(Type.GetType(ClipboardNodeCollection)) Then
Me.diagram1.Controller.Paste()
End If
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page