編輯

共用方式為


PivotTable.VisibleFields[Object] Property

Definition

Returns an object that represents either a single field in a PivotTable report (a PivotField object) or a collection of all the visible fields (a PivotFields object). Visible fields are shown as row, column, page, or data fields. Read-only.

public:
 property System::Object ^ VisibleFields[System::Object ^] { System::Object ^ get(System::Object ^ Index); };
public object VisibleFields[object Index] { get; }
Public ReadOnly Property VisibleFields(Optional Index As Object) As Object

Parameters

Index
Object

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

Property Value

Remarks

For OLAP data sources there are no hidden fields, and this property returns all the fields in the PivotTable cache.

Applies to