Get chart from its group starts to support in Spire.Presentation 2.1
We are glad to announce a new version of Spire.Presentation Pack 2.1 today. In this version, our Develop Team added a new feature to get chart from its group. Please check the following code snippet for how to get chart from its group.
Code Snippet:
Presentation presentation = new Presentation();
presentation.LoadFromFile("..\\..\\ppt.pptx");
GroupShape gs = presentation.Slides[0].Shapes[0] as GroupShape;
for (int j = 0; j < gs.Shapes.Count; j++)
{
if (gs.Shapes[j] is IChart)
{
IChart chart = gs.Shapes[j] as IChart;
}
}
Free Trail to evaluate Spire.Presentation Pack 2.1 here:
http://www.e-iceblue.com/Download/download-presentation-for-net-now.html