SettablePivotGlobalizationSettings

SettablePivotGlobalizationSettings class

Implementation of PivotGlobalizationSettings that supports user to set/change pre-defined texts.

Constructors

NameDescription
SettablePivotGlobalizationSettings

Methods

NameDescription
getTextOfTotalGets the text of “Total” label in the PivotTable. You need to override this method when the PivotTable contains two or m
setTextOfTotalSets the text of “Total” label in the PivotTable.
getTextOfGrandTotalGets the text of “Grand Total” label in the PivotTable.
setTextOfGrandTotalSets the text of “Grand Total” label in the PivotTable.
getTextOfMultipleItemsGets the text of “(Multiple Items)” label in the PivotTable.
setTextOfMultipleItemsSets the text of “(Multiple Items)” label in the PivotTable.
getTextOfAllGets the text of “(All)” label in the PivotTable.
setTextOfAllSets the text of “(All)” label in the PivotTable.
getTextOfProtectedNameGets the text for specified protected name.

In Ms Excel, some names are not allowed to be used as the name of PivotFiel | | setTextOfProtectedName | Sets the text for specific protected name. | | getTextOfColumnLabels | Gets the text of “Column Labels” label in the PivotTable. | | setTextOfColumnLabels | Gets the text of “Column Labels” label in the PivotTable. | | getTextOfRowLabels | Gets the text of “Row Labels” label in the PivotTable. | | setTextOfRowLabels | Sets the text of “Row Labels” label in the PivotTable. | | getTextOfEmptyData | Gets the text of “(blank)” label in the PivotTable. | | setTextOfEmptyData | Sets the text of “(blank)” label in the PivotTable. | | getTextOfDataFieldHeader | Gets the the text of the value area field header in the PivotTable. | | setTextOfDataFieldHeader | Sets the the text of the value area field header in the PivotTable. | | getTextOfSubTotal | Gets the text of PivotFieldSubtotalType type in the PivotTable. | | setTextOfSubTotal | Sets the text of PivotFieldSubtotalType type in the PivotTable. | | getTextOfProtection | Gets the protection name in the PivotTable.

NOTE: This member is now obsolete. Instead, please use PivotGlobalizationSe | | getShortTextOf12Months | Gets all short formatted string of 12 months. | | getTextOf4Quaters | Gets the local text of 4 Quaters. | | getTextOfYears | Gets the local text of “Years”. | | getTextOfQuarters | Get the local text of “Quarters”. | | getTextOfMonths | Gets the local text of “Months”. | | getTextOfDays | Gets the local text of “Days”. | | getTextOfHours | Gets the local text of “Hours”. | | getTextOfMinutes | Gets the local text of “Minutes”. | | getTextOfSeconds | Gets the local text of “Seconds” | | getTextOfRange | Gets the local text of “Range” | | getTextOfAllPeriods | | | getNameOfDataField | |

SettablePivotGlobalizationSettings()

getTextOfTotal()

Gets the text of “Total” label in the PivotTable. You need to override this method when the PivotTable contains two or more PivotFields in the data area.

Returns: The text of “Total” label

setTextOfTotal(text)

Sets the text of “Total” label in the PivotTable.

ParameterTypeDescription
textStringcustom text

getTextOfGrandTotal()

Gets the text of “Grand Total” label in the PivotTable.

Returns: The text of “Grand Total” label

setTextOfGrandTotal(text)

Sets the text of “Grand Total” label in the PivotTable.

ParameterTypeDescription
textStringcustom text

getTextOfMultipleItems()

Gets the text of “(Multiple Items)” label in the PivotTable.

Returns: The text of “(Multiple Items)” label

setTextOfMultipleItems(text)

Sets the text of “(Multiple Items)” label in the PivotTable.

ParameterTypeDescription
textStringcustom text

getTextOfAll()

Gets the text of “(All)” label in the PivotTable.

Returns: The text of “(All)” label

setTextOfAll(text)

Sets the text of “(All)” label in the PivotTable.

ParameterTypeDescription
textStringcustom text

getTextOfProtectedName(protectedName)

Gets the text for specified protected name.

In Ms Excel, some names are not allowed to be used as the name of PivotFields in PivotTable. They are different in different region, user may specify them explicitly according to the used region.

ParameterTypeDescription
protectedNameStringThe protected name in PivotTable.

Returns: The local prorected names of PivotTable.

setTextOfProtectedName(protectedName, text)

Sets the text for specific protected name.

ParameterTypeDescription
protectedNameStringThe protected name in PivotTable.
textStringThe local prorected names of PivotTable.

getTextOfColumnLabels()

Gets the text of “Column Labels” label in the PivotTable.

Returns: The text of column labels

setTextOfColumnLabels(text)

Gets the text of “Column Labels” label in the PivotTable.

ParameterTypeDescription
textStringThe text of column labels

getTextOfRowLabels()

Gets the text of “Row Labels” label in the PivotTable.

Returns: The text of row labels

setTextOfRowLabels(text)

Sets the text of “Row Labels” label in the PivotTable.

ParameterTypeDescription
textStringThe text of row labels

getTextOfEmptyData()

Gets the text of “(blank)” label in the PivotTable.

Returns: The text of empty data

setTextOfEmptyData(text)

Sets the text of “(blank)” label in the PivotTable.

ParameterTypeDescription
textStringThe text of empty data

getTextOfDataFieldHeader()

Gets the the text of the value area field header in the PivotTable.

Returns: The text of data field header name

setTextOfDataFieldHeader(text)

Sets the the text of the value area field header in the PivotTable.

ParameterTypeDescription
textStringThe text of data field header name

getTextOfSubTotal(subTotalType)

Gets the text of PivotFieldSubtotalType type in the PivotTable.

ParameterTypeDescription
subTotalTypeNumberA PivotFieldSubtotalType value. The PivotFieldSubtotalType

Returns: The text of given type

setTextOfSubTotal(subTotalType, text)

Sets the text of PivotFieldSubtotalType type in the PivotTable.

ParameterTypeDescription
subTotalTypeNumberA PivotFieldSubtotalType value. The PivotFieldSubtotalType
textStringThe text of given type

getTextOfProtection()

Gets the protection name in the PivotTable.

NOTE: This member is now obsolete. Instead, please use PivotGlobalizationSettings.GetTextOfProtectedName(string) method. This property will be removed 12 months later since March 2023. Aspose apologizes for any inconvenience you may have experienced.

Returns: The protection name of PivotTable

getShortTextOf12Months()

Gets all short formatted string of 12 months.

getTextOf4Quaters()

Gets the local text of 4 Quaters.

getTextOfYears()

Gets the local text of “Years”.

getTextOfQuarters()

Get the local text of “Quarters”.

getTextOfMonths()

Gets the local text of “Months”.

getTextOfDays()

Gets the local text of “Days”.

getTextOfHours()

Gets the local text of “Hours”.

getTextOfMinutes()

Gets the local text of “Minutes”.

getTextOfSeconds()

Gets the local text of “Seconds”

getTextOfRange()

Gets the local text of “Range”

getTextOfAllPeriods()

getNameOfDataField(function, name)