Partager via


PivotItem.ShowDetail Property

True if the outline is expanded for the specified range (so that the detail of the column or row is visible). Read/write Object.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property ShowDetail As Boolean
    Get
    Set
'Usage
Dim instance As PivotItem
Dim value As Boolean

value = instance.ShowDetail

instance.ShowDetail = value
bool ShowDetail { get; set; }

Property Value

Type: System.Boolean

Remarks

The specified range must be a single summary column or row in an outline. This property is set to True if the item is showing detail.

This property isn’t available for OLAP data sources.

If the specified range isn’t in a PivotTable report, the following statements are true:

  • The range must be in a single summary row or column.

  • This property returns False if any of the children of the row or column are hidden.

  • Setting this property to True is equivalent to unhiding all the children of the summary row or column.

  • Setting this property to False is equivalent to hiding all the children of the summary row or column.

If the specified range is in a PivotTable report, it’s possible to set this property for more than one cell at a time if the range is contiguous. This property can be returned only if the range is a single cell.

See Also

Reference

PivotItem Interface

PivotItem Members

Microsoft.Office.Interop.Excel Namespace