Dynamic Connector thickness

M

Manish

Hi,
I am using visio(2003) drawing control on C#(VS.NET 2005). I have some
shapes on drawing control which i am connecting using connectors by
using this statement on button click event:

SendCommand(Microsoft.Office.Interop.Visio.VisUICmds.visCmdDRConnectorTool);

But now i want the connectors with more thickness then the default
thickness. Please tell me how to achieve this programattically.
Thanks in Advance.
Manish Gupta
(e-mail address removed)
 
C

Chris Roth [MVP]

Two possibilities:

1. Change the line weight in the "Connector" style. The document has a set
of named styles that contain line, fill, text attributes. If you change
"Connector", then all connectors will change.

2. Set the LineWeight cell, ie:
shp = ActiveWindow.Selection[1];
shp.get_CellsU("LineWeight").FormulaU = "1pt";


--
Hope this helps,

Chris Roth
Visio MVP

www.wanderkind.com/visio
 

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