- Code: Select all
var barChart = presentation.Slides[0].Shapes.ToArray().FirstOrDefault(x => x.Name == "BarChart") as IChart;
barChart.IsSwitchRowAndColumn(); // This throws an exception
Additional info:
- Spire.Presentation for .NET 8.3.2
- Tested on .NET 5, 6
I also attached a sample solution for your reference.