VisioAutomation
VisioAutomation copied to clipboard
Setting both size and shape color
When both Size and Cells are set, the size value doesn't seem to take any effect.
VisioAutomation.Models.Layouts.DirectedGraph.Shape shape = AddShape();
shape.Size = new Size(1.25, 0.25);
shape.Cells = new VisioAutomation.Models.Dom.ShapeCells();
shape.Cells.FillForeground = "rgb(0,255,0)";
shape.Cells.FillPattern = 1;
The resulting shape has default size (2.25, 1.5) instead of the specified size.