PivotShowValuesSetting
PivotShowValuesSetting class
Represents the settings about showing values as when the ShowDataAs calculation is in use.
class PivotShowValuesSetting;
Properties
| Property | Type | Description |
|---|---|---|
| showValuesAs | PivotShowValuesAsType | Gets and sets how to show values of a data field in the pivot report. |
| calculationType | PivotFieldDataDisplayFormat | Represents how to show values of a data field in the pivot report. |
| baseFieldIndex | number | Represents the base field for a ShowDataAs calculation when the ShowDataAs calculation is in use. |
| baseItemPositionType | PivotItemPositionType | Represents type of the base pivot item in the base field when the ShowDataAs calculation is in use. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute. |
| baseFieldName | string | Readonly. Gets caption of the pivot base field. |
| baseItemCaption | string | Readonly. Gets caption of the pivot item in the base field. |
| baseItemIndex | number | Represents the custom index of the pivot item in the base field when the ShowDataAs calculation is in use. |
Methods
| Method | Description |
|---|---|
| getShowValuesAs() | @deprecated. Please use the ‘showValuesAs’ property instead. Gets and sets how to show values of a data field in the pivot report. |
| setShowValuesAs(PivotShowValuesAsType) | @deprecated. Please use the ‘showValuesAs’ property instead. Gets and sets how to show values of a data field in the pivot report. |
| getCalculationType() | @deprecated. Please use the ‘calculationType’ property instead. Represents how to show values of a data field in the pivot report. |
| setCalculationType(PivotFieldDataDisplayFormat) | @deprecated. Please use the ‘calculationType’ property instead. Represents how to show values of a data field in the pivot report. |
| getBaseFieldIndex() | @deprecated. Please use the ‘baseFieldIndex’ property instead. Represents the base field for a ShowDataAs calculation when the ShowDataAs calculation is in use. |
| setBaseFieldIndex(number) | @deprecated. Please use the ‘baseFieldIndex’ property instead. Represents the base field for a ShowDataAs calculation when the ShowDataAs calculation is in use. |
| getBaseItemPositionType() | @deprecated. Please use the ‘baseItemPositionType’ property instead. Represents type of the base pivot item in the base field when the ShowDataAs calculation is in use. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute. |
| setBaseItemPositionType(PivotItemPositionType) | @deprecated. Please use the ‘baseItemPositionType’ property instead. Represents type of the base pivot item in the base field when the ShowDataAs calculation is in use. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute. |
| getBaseFieldName() | @deprecated. Please use the ‘baseFieldName’ property instead. Gets caption of the pivot base field. |
| getBaseItemCaption() | @deprecated. Please use the ‘baseItemCaption’ property instead. Gets caption of the pivot item in the base field. |
| getBaseItemIndex() | @deprecated. Please use the ‘baseItemIndex’ property instead. Represents the custom index of the pivot item in the base field when the ShowDataAs calculation is in use. |
| setBaseItemIndex(number) | @deprecated. Please use the ‘baseItemIndex’ property instead. Represents the custom index of the pivot item in the base field when the ShowDataAs calculation is in use. |
| isNull() | Checks whether the implementation object is null. |
showValuesAs
Gets and sets how to show values of a data field in the pivot report.
showValuesAs : PivotShowValuesAsType;
calculationType
Represents how to show values of a data field in the pivot report.
calculationType : PivotFieldDataDisplayFormat;
Remarks
NOTE: This property is now obsolete. Instead, please use PivotShowValuesSetting.ShowValuesAs property instead. This method will be removed 12 months later since November 2026. Aspose apologizes for any inconvenience you may have experienced.
baseFieldIndex
Represents the base field for a ShowDataAs calculation when the ShowDataAs calculation is in use.
baseFieldIndex : number;
baseItemPositionType
Represents type of the base pivot item in the base field when the ShowDataAs calculation is in use. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute.
baseItemPositionType : PivotItemPositionType;
Remarks
NOTE: This property is now obsolete. Instead, please use PivotShowValuesSetting.BaseItem property instead. This method will be removed 12 months later since November 2026. Aspose apologizes for any inconvenience you may have experienced.
baseFieldName
Readonly. Gets caption of the pivot base field.
baseFieldName : string;
baseItemCaption
Readonly. Gets caption of the pivot item in the base field.
baseItemCaption : string;
baseItemIndex
Represents the custom index of the pivot item in the base field when the ShowDataAs calculation is in use.
baseItemIndex : number;
Remarks
PivotShowValuesSetting.PreviousPivotItem (-1) for the preceding item, PivotShowValuesSetting.NextPivotItem (-2) for the succeeding item; non‑negative values denote the ordinal index of a specific pivot item.
getShowValuesAs()
@deprecated. Please use the ‘showValuesAs’ property instead. Gets and sets how to show values of a data field in the pivot report.
getShowValuesAs() : PivotShowValuesAsType;
Returns
setShowValuesAs(PivotShowValuesAsType)
@deprecated. Please use the ‘showValuesAs’ property instead. Gets and sets how to show values of a data field in the pivot report.
setShowValuesAs(value: PivotShowValuesAsType) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | PivotShowValuesAsType | The value to set. |
getCalculationType()
@deprecated. Please use the ‘calculationType’ property instead. Represents how to show values of a data field in the pivot report.
getCalculationType() : PivotFieldDataDisplayFormat;
Returns
Remarks
NOTE: This property is now obsolete. Instead, please use PivotShowValuesSetting.ShowValuesAs property instead. This method will be removed 12 months later since November 2026. Aspose apologizes for any inconvenience you may have experienced.
setCalculationType(PivotFieldDataDisplayFormat)
@deprecated. Please use the ‘calculationType’ property instead. Represents how to show values of a data field in the pivot report.
setCalculationType(value: PivotFieldDataDisplayFormat) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | PivotFieldDataDisplayFormat | The value to set. |
Remarks
NOTE: This property is now obsolete. Instead, please use PivotShowValuesSetting.ShowValuesAs property instead. This method will be removed 12 months later since November 2026. Aspose apologizes for any inconvenience you may have experienced.
getBaseFieldIndex()
@deprecated. Please use the ‘baseFieldIndex’ property instead. Represents the base field for a ShowDataAs calculation when the ShowDataAs calculation is in use.
getBaseFieldIndex() : number;
setBaseFieldIndex(number)
@deprecated. Please use the ‘baseFieldIndex’ property instead. Represents the base field for a ShowDataAs calculation when the ShowDataAs calculation is in use.
setBaseFieldIndex(value: number) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | number | The value to set. |
getBaseItemPositionType()
@deprecated. Please use the ‘baseItemPositionType’ property instead. Represents type of the base pivot item in the base field when the ShowDataAs calculation is in use. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute.
getBaseItemPositionType() : PivotItemPositionType;
Returns
Remarks
NOTE: This property is now obsolete. Instead, please use PivotShowValuesSetting.BaseItem property instead. This method will be removed 12 months later since November 2026. Aspose apologizes for any inconvenience you may have experienced.
setBaseItemPositionType(PivotItemPositionType)
@deprecated. Please use the ‘baseItemPositionType’ property instead. Represents type of the base pivot item in the base field when the ShowDataAs calculation is in use. Because PivotItemPosition.Custom is only for read,if you need to set PivotItemPosition.Custom, please set PivotField.BaseItemIndex attribute.
setBaseItemPositionType(value: PivotItemPositionType) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | PivotItemPositionType | The value to set. |
Remarks
NOTE: This property is now obsolete. Instead, please use PivotShowValuesSetting.BaseItem property instead. This method will be removed 12 months later since November 2026. Aspose apologizes for any inconvenience you may have experienced.
getBaseFieldName()
@deprecated. Please use the ‘baseFieldName’ property instead. Gets caption of the pivot base field.
getBaseFieldName() : string;
getBaseItemCaption()
@deprecated. Please use the ‘baseItemCaption’ property instead. Gets caption of the pivot item in the base field.
getBaseItemCaption() : string;
getBaseItemIndex()
@deprecated. Please use the ‘baseItemIndex’ property instead. Represents the custom index of the pivot item in the base field when the ShowDataAs calculation is in use.
getBaseItemIndex() : number;
Remarks
PivotShowValuesSetting.PreviousPivotItem (-1) for the preceding item, PivotShowValuesSetting.NextPivotItem (-2) for the succeeding item; non‑negative values denote the ordinal index of a specific pivot item.
setBaseItemIndex(number)
@deprecated. Please use the ‘baseItemIndex’ property instead. Represents the custom index of the pivot item in the base field when the ShowDataAs calculation is in use.
setBaseItemIndex(value: number) : void;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | number | The value to set. |
Remarks
PivotShowValuesSetting.PreviousPivotItem (-1) for the preceding item, PivotShowValuesSetting.NextPivotItem (-2) for the succeeding item; non‑negative values denote the ordinal index of a specific pivot item.
isNull()
Checks whether the implementation object is null.
isNull() : boolean;