Hi,
Here’s a simple example on how to perform copy and paste operations:
NRectangleShape rect = new NRectangleShape(20, 20, 100, 60);
document.ActiveLayer.AddChild(rect);
NNodeList nodes = new NNodeList();
nodes.Add(rect);
view.Copy(nodes);
view.Paste();
If you want to copy/paste only the selected nodes, you can use the following code:
view.Copy(view.Selection.Nodes);
Best Regards,Nevron Support Team
Hi Fabian,
upon copying/pasting the clipboard is used, so you can copy from one view and paste in another in the same way. Call the "Copy" method of the first view and then the "Paste" method of the second.