How do I tell which item in a PowerPoint chart is selected? RRS feed

  • Question

  • Using the standard Cluster Column chart as an example (Insert/Charts/Column). If the user selects only the first column in the chart, how do I tell what was selected? The code below:

                                var selection = Globals.ThisAddIn.Application.ActiveWindow.Selection;

                                selection.ShapeRange.Fill.Visible = Office.MsoTriState.msoTrue;
                                selection.ShapeRange.Fill.ForeColor.RGB = (int)0xFF0000; 

    Sets the background of the chart color, not the column selected.

    Tuesday, November 8, 2016 2:06 AM