# ExcelPivotCalculatedFieldInfo

Describes a calculated pivot cache field found in an existing pivot table.

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[ExcelPivotCalculatedFieldInfo.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotCalculatedFieldInfo.cs#L9)

**Modifiers**

sealed

Describes a calculated pivot cache field found in an existing pivot table.

## Inheritance

- object
- ExcelPivotCalculatedFieldInfo

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [ExcelPivotTableInfo.CalculatedFields](/api/excel/officeimo-excel-excelpivottableinfo/#property-calculatedfields)

### Accepted by parameters 1

- Constructor [ExcelPivotTableInfo.ExcelPivotTableInfo](/api/excel/officeimo-excel-excelpivottableinfo/#constructor-ctor-string-uint32-string-string-string-string-int32-string-officeimo-excel-excelpivotlayout-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-string-string-string-string-string-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-collections-generic-ireadonlylist-system-string-collections-generic-ireadonlylist-system-string-collections-generic-ireadonlylist-system-string-collections-generic-ireadonlylist-officeimo-excel-excelpivotdatafieldinfo-collections-generic-ireadonlylist-officeimo-excel-excelpivotfieldinfo-collections-generic-ireadonlylist-officeimo-excel-excelpivotfilterinfo-collections-generic-ireadonlylist-officeimo-excel-excelpivotcalculatedfieldinfo-collections-generic-ireadonlylist-officeimo-excel-excelpivotgroupinginfo-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean-nullable-system-boolean) parameter `calculatedFields`

Filter members 

Show inherited

## Constructors

`public ExcelPivotCalculatedFieldInfo(string name, string formula, string? caption = null, uint? numberFormatId = null, string? numberFormatCode = null)` [#](#constructor-ctor-string-string-string-nullable-system-uint32-string)

[ExcelPivotCalculatedFieldInfo.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotCalculatedFieldInfo.cs#L9)

Creates calculated pivot field readback information.

Parameters

**name string required**

**formula string required**

**caption string? = null optional**

**numberFormatId uint? = null optional**

**numberFormatCode string? = null optional**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Name { get; }` [#](#property-name)

[ExcelPivotCalculatedFieldInfo.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotCalculatedFieldInfo.cs#L18)

Gets the calculated field name.

`public string Formula { get; }` [#](#property-formula)

[ExcelPivotCalculatedFieldInfo.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotCalculatedFieldInfo.cs#L21)

Gets the calculated field formula.

`public string? Caption { get; }` [#](#property-caption)

[ExcelPivotCalculatedFieldInfo.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotCalculatedFieldInfo.cs#L24)

Gets the optional display caption.

`public uint? NumberFormatId { get; }` [#](#property-numberformatid)

[ExcelPivotCalculatedFieldInfo.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotCalculatedFieldInfo.cs#L27)

Gets the optional built-in/custom number format id.

`public string? NumberFormatCode { get; }` [#](#property-numberformatcode)

[ExcelPivotCalculatedFieldInfo.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelPivotCalculatedFieldInfo.cs#L30)

Gets the custom number format code, when it can be resolved from workbook styles.

<!-- PowerForge markdown artifact sha256:3097C9F823D09905850080EC1020047D799EA7F706FFC63B3F4D21D4DE888FAD -->
