Aspose.Diagram for .NET 19.11 Release Notes

Improvements and Changes

DIAGRAMNET-50004Add support to apply stylesheet for full pageEnhancement
DIAGRAMNET-50576Add support to dispose a Diagram class objectEnhancement
DIAGRAMNET-50098Set page background colorBug
DIAGRAMNET-51722Diagram to SVG - output image has faultsBug
DIAGRAMNET-51724Errors in the Chrome console when viewing output SVGBug
DIAGRAMNET-51725Retrieve z-index of shapes in DiagramBug
DIAGRAMNET-51726Background Image Missing (PowerPoint is added in the VISIO) while removing unused master shapes and stylesBug
DIAGRAMNET-51727CheckBox (CheckBox Control) Missing while removing unused master shapes and stylesBug
DIAGRAMNET-51728Line Missing while removing unused master shapes and stylesBug

Public API and Backwards Incompatible Changes

The following is a list of any changes made to the public API such as added, renamed, removed or deprecated members as well as any non-backward compatible change made to Aspose.Diagram for .NET. If you have concerns about any change listed, please raise it on the Aspose.Diagram support forum.

Added ApplyStyle in Page

Applies style to full page.

StyleSheet st = new StyleSheet();

st.ID = dia.StyleSheets.Count + 1;

Aspose.Diagram.Char ch = new Aspose.Diagram.Char();

ch.Color.Value = "#00ff00";

ch.IX = 0;


st.Line.LineColor.Value = "#ff0000";

st.Line.LinePattern.Value = 1;

st.Line.LineWeight.Value = 0.01;

st.Fill.FillForegnd.Value = "#0000ff";

st.Fill.FillPattern.Value = 1;

st.Fill.ShdwPattern.Value = 0;


foreach (Shape shape in dia.Pages[0].Shapes)


     shape.Line.LinePattern.Value = 1;
     shape.Fill.FillPattern.Value = 1;


dia.Pages[0].ApplyStyle(st.ID, st.ID, st.ID);

Added Dispose in Diagram

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.