How to Change color of a selected Visio shape in c

2019-08-22 10:32发布

I want to programatically change the color of a selected shape in visio. I can identify the shape but can't find out which property to use for changing the color/style of this shape.

I am using shapes from this package:

Microsoft.Office.Interop.Visio.IV.Shape.Shapes

Has anybody experience with changing the color?

1条回答
smile是对你的礼貌
2楼-- · 2019-08-22 11:06

I have an application where I change the line color by manipulating the cell in the shape sheet, like this:visioShape.get_Cells("LineColor").Formula = "RGB(255,0,0)";

查看更多
登录 后发表回答