Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem with cloneNode (Read 1208 times)
Bala
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
Problem with cloneNode
May 23rd, 2009 at 9:15am
Print Post  
Hi,

I have a ShapeNode for which I have created a clone(say cloneNode). code for this is

ShapeNode cloudNode = sourceNode.Clone(true) as ShapeNode;

I have some child nodes(attached nodes) in sourceNode but in cloneNode those childNodes are not visible.

Is their any more property to set by which I can see the childNodes as well as part of clone?

Thanks,
Bala
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with cloneNode
Reply #1 - May 25th, 2009 at 4:57am
Print Post  
Hi,

There isn't such property. You could temporarily select this node and call CopySelection(..., true) and PasteSelection to clone the attached items too, and restore the selection after that.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint