Change the background of Dynamic connector programmatically - C#

P

Pradeep

Hi,

I am working on Visio activex control in my C# application.
We have a Validate button. Onclick of it I have to change the line
color/Background color of the dynamic connector in my visio diagram.
Plz let me know how to change the background color of a dynamic connector in
visio diagram using C#.
 
A

Al Edlund

two basic ones are to :
a.) move the shape to a layer that is keyed to a color like this
Set layerObj = layersObj.Add("NetUnavailable")
Set pagCell = Page.PageSheet.Cells("layers.color[2]")
SetCellValueToString pagCell, visRed

b.) change the color of the connector directly
Case stLAN_Fiber
Set objCell = objCable.Cells("LineColor")
objCell.FormulaU = visRed

al
 
J

JuneTheSecond

For line color change the value of LineColor cell that is in Line Format
Section in shapesheet. What do you mean by Back ground for line.
 

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