VisioAutomation icon indicating copy to clipboard operation
VisioAutomation copied to clipboard

Setting both size and shape color

Open dennis-yemelyanov opened this issue 7 years ago • 0 comments

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.

dennis-yemelyanov avatar May 02 '18 19:05 dennis-yemelyanov