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
[email protected]
 
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
 
Top