Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) How to adjust ContainerNode's Size? (Read 4808 times)
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
How to adjust ContainerNode's Size?
Feb 9th, 2020 at 3:45am
Print Post  
How to adjust the Distance (a,b,c,d)?
How to adjust Size(e) with mouse
  

000.png ( 8 KB | 154 Downloads )
000.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: How to adjust ContainerNode's Size?
Reply #1 - Feb 10th, 2020 at 6:42am
Print Post  
Quote:
How to adjust the Distance (a,b,c,d)?


Set container's Margin property.

Quote:
How to adjust Size(e) with mouse


Set these properties to values different than the default ones, e.g. try All and SquareHandles instead -

Code
Select All
ContainerNode()
{
	EnabledHandles = AdjustmentHandles.Move;
	HandlesStyle = HandlesStyle.MoveOnly;
} 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
Re: How to adjust ContainerNode's Size?
Reply #2 - Feb 10th, 2020 at 7:52am
Print Post  
thx
EnabledHandles = AdjustmentHandles.All;
HandlesStyle = HandlesStyle.Invisible;

another question:
How to know ContainerNode [000] contains Node[001~004]
or
How to know Node[001~004] 's parent is ContainerNode [000]
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: How to adjust ContainerNode's Size?
Reply #3 - Feb 10th, 2020 at 8:07am
Print Post  
Containers are implemented via Group objects, and you can get child nodes / parent container through the SubordinateGroup.AttachedNodes / MasterGroup.MainItem properties. We've started migrating this to dedicated APIs for containers in a few of our platforms (e.g. node.Container), which will be available in WinForms version too later this year, but for time being you'll need to use the groups API. There's also a static ContainerNode.GetContainer(childNode) helper method.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
Re: How to adjust ContainerNode's Size?
Reply #4 - Feb 11th, 2020 at 12:55pm
Print Post  
How to know Node[001~004] is in ContainerNode [000]
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: How to adjust ContainerNode's Size?
Reply #5 - Feb 11th, 2020 at 2:14pm
Print Post  
try container.SubordinateGroup.AttachedNodes.
  
Back to top
 
IP Logged
 
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
Re: How to adjust ContainerNode's Size?
Reply #6 - Feb 13th, 2020 at 10:25am
Print Post  
How to set ContainerNode's Rounded Radius?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: How to adjust ContainerNode's Size?
Reply #7 - Feb 13th, 2020 at 11:42am
Print Post  
Try the diagram.RoundRectFactor property.
  
Back to top
 
IP Logged
 
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
Re: How to adjust ContainerNode's Size?
Reply #8 - Feb 14th, 2020 at 2:49am
Print Post  
How to automatically move Node/ ContainerNode to align to the grid
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: How to adjust ContainerNode's Size?
Reply #9 - Feb 14th, 2020 at 6:40am
Print Post  
You can find nearby grid point by calling diagram.AlignPointToGrid(node.Bounds.Location), and then call node.Move() to move the node to that point.
  
Back to top
 
IP Logged
 
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
Re: How to adjust ContainerNode's Size?
Reply #10 - Feb 14th, 2020 at 8:34am
Print Post  
thx very much.
  
Back to top
 
IP Logged
 
Gu Wenwei
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 49
Joined: May 2nd, 2017
Re: How to adjust ContainerNode's Size?
Reply #11 - Feb 15th, 2020 at 4:58am
Print Post  
Why move the ContainerNode's Nodes back to their original places
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: How to adjust ContainerNode's Size?
Reply #12 - Feb 17th, 2020 at 6:12am
Print Post  
Sorry, I can't understand the question.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint