[]
Gets or sets whether the pivot item is visible.
bool Visible { get; set; }
Property Visible As Boolean
worksheet.Range["A1:B3"].Value = new object[,] {
{"Product", "Amount"},
{"Bose", 100},
{"Canon", 200}
};
IPivotCache pivotCache = workbook.PivotCaches.Create(worksheet.Range["A1:B3"]);
IPivotTable pivotTable = worksheet.PivotTables.Add(pivotCache, worksheet.Range["D1"], "PivotTable1");
IPivotField productField = pivotTable.PivotFields["Product"];
productField.Orientation = PivotFieldOrientation.RowField;
pivotTable.PivotFields["Amount"].Orientation = PivotFieldOrientation.DataField;
productField.PivotItems["Bose"].Visible = false;
bool visible = productField.PivotItems["Bose"].Visible;