如何在C#中更改选定的Visio形状的颜色? [英] How to Change color of a selected Visio shape in c#?

查看:114
本文介绍了如何在C#中更改选定的Visio形状的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以编程方式在visio中更改选定形状的颜色。我可以识别形状,但是找不到用于更改该形状的颜色/样式的属性。

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

有任何人

推荐答案

我有一个应用程序,通过操纵形状工作表中的单元来更改线条颜色,像这样: visioShape.get_Cells( LineColor)。Formula = RGB(255,0,0);

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

这篇关于如何在C#中更改选定的Visio形状的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆