无法以编程方式更改 Visio 单元格
我需要更改所选形状的线条颜色。我有以下代码:
selectedShape.Cells["LineColor"].FormulaU = "RGB(255,0,0)";
它不适用于某些形状,而对于其他形状则可以完美地工作。我还尝试了 FormulaForceU 并修改了除 LineColor 之外的其他属性,它都是一样的,它适用于某些形状,但不适用于其他形状。
这些模具不是 Visio 标准,遗憾的是我无法将它们发布到此处。
I need to change a line colour of a selected shape. I have the following code:
selectedShape.Cells["LineColor"].FormulaU = "RGB(255,0,0)";
It doesn't work for some shapes, while it works flawlessly for other ones. I also tried FormulaForceU and modifying other properties besides LineColor, it was all the same, it worked for some shapes, it didn't work for some other.
The stencils are non Visio standard and unfortunately I can't post them here.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试像这样使用
Visio 需要公式的精确引号字符。
我的电池也有类似的问题。不过我用了].Formula
问候。
Try use like this
Visio need exact quote character for the formulas.
I had similar issue with the cell . However I used ].Formula
Regards.
不幸的是,我使用的 Visio 模具不允许我覆盖该属性。
Unfortunately, the Visio stencils I used didn't allow me to overwrite that property.