问题
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