Connector Styles

E

Eric

Hello,

I am generating a Statechart diagram in C# and everything is going well.

In general I am using the Curved Connector for dynamically connecting
shapes.

However, if the connector needs to point back to the same shape, the
Right-Angle Connector looks much much better.

Can change the connector "style" programmatically to use the Right-Angle
Connector style? Here's the current code creating the connection:

Visio.Shape sFromState = ...
Visio.Shape sTransition = ...

Visio.Cell cFrom = sTransition.get_Cells("BeginY");
Visio.Cell cTo = sFromState.get_Cells("PinY");

cFrom.GlueTo(cTo);

Thanks for your insight,

Eric
 
C

Chris Roth [ Visio MVP ]

Easy! Set a cell in the Shape Layout section

Shape.Cellsu("ConLineRouteExt").ResultIU = 1

FYI:

0 = default
2 = curved

--

Hope this helps,

Chris Roth
Visio MVP
 
E

Eric

Thanks!

Chris Roth said:
Easy! Set a cell in the Shape Layout section

Shape.Cellsu("ConLineRouteExt").ResultIU = 1

FYI:

0 = default
2 = curved

--

Hope this helps,

Chris Roth
Visio MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top