J
jader3rd
I'm writing a program in C# which is laying out a series of shapes based on
the input given to the program. I'm at the point where I want to change the
color of the shapes and following the pattern of changing the cell value for
that shape isn't working. For example, this bit of code isn't changing the
color of the shape.
Document adStencil = vApp.Documents.Add(@"ADS_U.VSS");
Master domainMaster = adStencil.Masters.get_ItemU(@"Domain 2D");
Shape domain = page.Drop(domainMaster, startX, startY);
domain.get_CellsU("FillForegnd").ResultIUForce = 2;
The interesting thing is when I go to change the color of the shape through
Visio after having set it this way the color is still white, but in the color
selection window the color is gray, but it won't set the color to gray.
I would prefer it if I didn't have to set it to a color on the color
chooser, but could pass in an RGB value. What step am I missing?
the input given to the program. I'm at the point where I want to change the
color of the shapes and following the pattern of changing the cell value for
that shape isn't working. For example, this bit of code isn't changing the
color of the shape.
Document adStencil = vApp.Documents.Add(@"ADS_U.VSS");
Master domainMaster = adStencil.Masters.get_ItemU(@"Domain 2D");
Shape domain = page.Drop(domainMaster, startX, startY);
domain.get_CellsU("FillForegnd").ResultIUForce = 2;
The interesting thing is when I go to change the color of the shape through
Visio after having set it this way the color is still white, but in the color
selection window the color is gray, but it won't set the color to gray.
I would prefer it if I didn't have to set it to a color on the color
chooser, but could pass in an RGB value. What step am I missing?