make pasted nodes be selected

Hi,
C#, DiagramControl.
When you select several nodes in diagram, then Copy and Paste them, by default, No nodes are selected after paste operation.

I want to make all newly pasted nodes be selected after paste operation, so that I can easily drag/drop these newly pasted nodes to move around.
How can I do it?



Thanks,


Lan

private void barItemEditCopy_Click(object sender, System.EventArgs e)
{
this.diagram.Copy();
}

private void barItemEditPaste_Click(object sender, System.EventArgs e)
{
this.diagram.Paste();
}


1 Reply

AM Ajeet M Syncfusion Team January 27, 2009 04:38 AM UTC

Hi Lan,

I was not able to reproduce this issue.

For your convenience I am attaching my sample file that demonstrates that on paste(), the pasted nodes are selected by default.

Let me know if this helps.

Happy coding!
- Ajeet




Diagram_WF_NodeCopyPaste_6b40db27.zip

Loader.
Up arrow icon