Language

PivotFields インターフェイス

定義

ピボットテーブル レポートのすべての PivotField オブジェクトのコレクション。

public interface class PivotFields : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020875-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface PivotFields : System.Collections.IEnumerable
Public Interface PivotFields
Implements IEnumerable
属性
実装

注釈

PivotFields コレクションを返すには、PivotTable オブジェクトの PivotFields(Object) メソッドを使用します。

1 つの PivotField オブジェクトを返すには、PivotFields(indexindex はフィールド名またはインデックス番号) を使用します。

ピボットテーブル フィールドのサブセットを取得するプロパティを使うと便利な場合があります。 使用できるプロパティを次に示します。

プロパティ

名前 説明
Application

Microsoft Excel アプリケーションを表す Application オブジェクトを返します。 読み取り専用です。

Count

コレクション内にあるオブジェクトの数を返します。 読み取り専用の Integer です。

Creator

このオブジェクトを作成したアプリケーションを示す、32 ビットの整数値を返します。 Excel で作成されたオブジェクトの場合は、文字列 XCEL を表す 16 進数の 5843454C を返します。 読み取り専用 XlCreator。

Parent

指定されたオブジェクトの親オブジェクトを返します。 読み取り専用です。

メソッド

名前 説明
GetEnumerator()

ピボットテーブル レポートのすべての PivotField オブジェクトのコレクション。

Item(Object)

コレクションから単一のオブジェクトを返します。

適用対象