Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Get Shape Default Dimension (Read 2272 times)
bertbell
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 1
Joined: Aug 14th, 2020
Get Shape Default Dimension
Aug 15th, 2020 at 12:45am
Print Post  
I am adding ShapeNode objects to a diagram programmatically using a ShapeLibrary.  Is there any way to get the default Shape object dimension?  The shapes are drawn using  Lines, rectangles and arcs if that matters.

I would like it to be the same size as the ShapeNodes added via drag and drop.

Thanks
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Get Shape Default Dimension
Reply #1 - Aug 15th, 2020 at 12:22pm
Print Post  
Try ShapeListBox.getDefaultShapeSize() or NodeListView.getDefaultNodeSize(), depending on which control you drag from. You could also change these to your preferred size.

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