变色的程序为
// Cell cell = vShape.get_Cells("LineColor");
Cell cell = vShape.get_CellsSRC((short)VisSectionIndices.visSectionObject,(short)VisRowIndices.visRowFill,(short)VisCellIndices.visFillForegnd);
cell.Formula = "RGB(255,0,0)";
效果就是线路的颜色都变了,可像断路器、电阻、变压器之类的器件无法改变。
可是,程序执行过后看断路器的属性:[img=http://s1.sinaimg.cn/middle/6f93fc0agbab621c40e90&690]http://s1.sinaimg.cn/middle/6f93fc0agbab621c40e90&690[/img]
看得出来,实际颜色是变了的,只是未显现出来,这是为什么啊??????
哪位高人能指点一下!!!