Compartilhar via


PivotField.VisibleItems Property

Returns an object that represents either a single visible PivotTable item (a PivotItem object) or a collection of all the visible items (a PivotItems object) in the specified field. Read-only.

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

Syntax

'Declaration
ReadOnly Property VisibleItems ( _
    Index As Object _
) As Object
    Get
'Usage
Dim instance As PivotField
Dim Index As Object
Dim value As Object

value = instance.VisibleItems(Index)
Object this[
    Object Index
] { get; }

Parameters

  • Index
    Type: System.Object

    Optional Object. The number or name of the item to be returned (can be an array to specify more than one item).

Property Value

Type: System.Object

Remarks

For OLAP data sources, this property is read-only and always returns True. There are no hidden items.

See Also

Reference

PivotField Interface

PivotField Members

Microsoft.Office.Interop.Excel Namespace