How to Change color of a selected Visio shape in c#?

坚强是说给别人听的谎言 提交于 2019-12-25 01:35:28

问题


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:


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)";



来源:https://stackoverflow.com/questions/44523785/how-to-change-color-of-a-selected-visio-shape-in-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!