Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can the shape be nested? (Read 2416 times)
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
Can the shape be nested?
May 27th, 2018 at 6:17am
Print Post  
Can the shape be nested?
A shape representing several related shape.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Can the shape be nested?
Reply #1 - May 28th, 2018 at 5:52am
Print Post  
You could place shapes inside ContainerNode, or use AttachTo method to create groups.
  
Back to top
 
IP Logged
 
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
Re: Can the shape be nested?
Reply #2 - May 31st, 2018 at 2:15am
Print Post  
How to move shapenode into containerNode in the program
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: Can the shape be nested?
Reply #3 - May 31st, 2018 at 7:23am
Print Post  
Call containerNode.Add(shapeNode);
  
Back to top
 
IP Logged
 
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
Re: Can the shape be nested?
Reply #4 - Jun 2nd, 2018 at 2:28pm
Print Post  
Call?
I Cannot Call in C#
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: Can the shape be nested?
Reply #5 - Jun 4th, 2018 at 11:34am
Print Post  
Hi,

Try the following:

Code
Select All
var container = diagram.Factory.CreateContainerNode(20, 30, 100, 40);

var shapeNode1 = diagram.Factory.CreateShapeNode(20, 30, 30, 20);
var shapeNode2 = diagram.Factory.CreateShapeNode(60, 40, 30, 20);
diagram.Factory.CreateDiagramLink(shapeNode1, shapeNode2);

container.Add(shapeNode1);
container.Add(shapeNode2); 



Regards,
Lyubo
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint