[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IPivotOptions.ShowAllFieldButtons

ShowAllFieldButtons Property

ShowAllFieldButtons

Gets or sets whether all field buttons are displayed on a PivotChart.

Field buttons include the interactive buttons shown on a PivotChart for filtering and expanding PivotTable fields.

Declaration
bool ShowAllFieldButtons { get; set; }
Property ShowAllFieldButtons As Boolean
Examples
worksheet.Range["A1:B4"].Value = new object[,] {
    {"Category", "Amount"},
    {"Fruit", 100},
    {"Fruit", 200},
    {"Vegetable", 150}
};
IPivotCache pivotCache = workbook.PivotCaches.Create(worksheet.Range["A1:B4"]);
IPivotTable pivotTable = worksheet.PivotTables.Add(pivotCache, worksheet.Range["D1"]);
pivotTable.PivotFields["Category"].Orientation = PivotFieldOrientation.RowField;
pivotTable.PivotFields["Amount"].Orientation = PivotFieldOrientation.DataField;
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 10, 10, 300, 200).Chart;
chart.SeriesCollection.Add(pivotTable.TableRange1);
chart.PivotOptions.ShowAllFieldButtons = false;
bool showAllFieldButtons = chart.PivotOptions.ShowAllFieldButtons;