Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Creating a link with no arrowheads (Read 1965 times)
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Creating a link with no arrowheads
Oct 26th, 2013 at 3:22pm
Print Post  
Hi,

Currently I allow the user to select whether they want the arrows to be on one end or the other, or both.
Now, they'd like to be able to select "none".
I'm sure this is easy, but I'm having a challenge making it happen.

I've tried the following, but the diagram refuses to render at all:

Code
Select All
if (direction.ToLower() == "none") // Set the size of the shape at both ends of the connector to 0 if "none" was specified under Arrowheads
        {
            link.BaseShapeSize = 0;
            link.HeadShapeSize = 0;
        } 



Any suggestions?

Thanks in advance.

Jim

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Creating a link with no arrowheads
Reply #1 - Oct 27th, 2013 at 7:17am
Print Post  
Set link.HeadShape = null to remove the arrowhead. There's also ArrowHeads.None member, which returns null anyway.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Re: Creating a link with no arrowheads
Reply #2 - Oct 27th, 2013 at 12:18pm
Print Post  
Hi,

Thanks for the prompt reply even on a weekend.

I opted for the ArrowHeads.None approach as it is somewhat more intuitive and self-documenting.

Jim

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