I would like to inquire how the IsSwitchRowAndColumn flag works
- Code: Select all
bool isSwitchRowAndColumn = chart.IsSwitchRowAndColumn();
I have a powerpoint with a chart where switched row and column and a copy of the same chart where I did not switch row and column.
When I checked the code .IsSwitchRowAndColumn, it always returns a false value.
I also saw a method SwitchRowAndColumn. When I tried calling it, it did not do anything.
Some code snippets:
- Code: Select all
bool isSwitchRowAndColumn = chart.IsSwitchRowAndColumn(); //check if chart rows and columns are switched. this always returns false even if I switched it
//populate new chart values
chart.ChartData[x,y] = value;
isSwitchRowAndColumn = chart.IsSwitchRowAndColumn(); //check value again still false
chart.SwitchRowAndColumn(); // does nothing
isSwitchRowAndColumn = chart.IsSwitchRowAndColumn(); // check value again still false