Hi Team,
I have created a stencil with custom shapes by merging basic shapes.
Then i tried creating a diagram from those shapes and setting their background color, which is not working.
Tried the below ways:
Shape shape = diagram.Pages[0].Shapes.GetShape(shapeId);
shape.Fill.FillForegnd.Value = “#92D050”;//green
or
Shape shape = diagram.Pages[0].Shapes.GetShape(shapeId);
shape.Fill.FillForegnd.Value = “1”;//green
Then i have tried setting the color on sub shapes using the below code:
shape.Shapes[0].Fill.FillForegnd.Value = “1”;
This also didnt help.
Stencil created is below
Screenshot 2022-09-19 163646.png (2.7 KB)
Please help me in finding a way to set the foreground /background color of the custom shape