PivotGlobalizationSettings
PivotGlobalizationSettings class
Represents the globalization settings for pivot tables.
Constructors
| Name | Description |
|---|---|
| PivotGlobalizationSettings |
Methods
| Name | Description |
|---|---|
| getTextOfTotal | Gets the text of “Total” label in the PivotTable. You need to override this method when the PivotTable contains two or m |
| getTextOfGrandTotal | Gets the text of “Grand Total” label in the PivotTable. |
| getTextOfMultipleItems | Gets the text of “(Multiple Items)” label in the PivotTable. |
| getTextOfAll | Gets the text of “(All)” label in the PivotTable. |
| getTextOfProtection | Gets the protection name in the PivotTable. |
NOTE: This member is now obsolete. Instead, please use PivotGlobalizationSe | | getTextOfProtectedName | Gets the text for specified protected name.
In Ms Excel, some names are not allowed to be used as the name of PivotFiel | | getTextOfColumnLabels | Gets the text of “Column Labels” label in the PivotTable. | | getTextOfRowLabels | Gets the text of “Row Labels” label in the PivotTable. | | getTextOfEmptyData | Gets the text of “(blank)” label in the PivotTable. | | getTextOfDataFieldHeader | Gets the the text of the value area field header in the 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 | | | getTextOfSubTotal | Gets the text of PivotFieldSubtotalType type in the PivotTable. |
PivotGlobalizationSettings()
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
getTextOfGrandTotal()
Gets the text of “Grand Total” label in the PivotTable.
Returns: The text of “Grand Total” label
getTextOfMultipleItems()
Gets the text of “(Multiple Items)” label in the PivotTable.
Returns: The text of “(Multiple Items)” label
getTextOfAll()
Gets the text of “(All)” label in the PivotTable.
Returns: The text of “(All)” label
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
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.
| Parameter | Type | Description |
|---|---|---|
| protectedName | String | The protected name in PivotTable. |
Returns: The local prorected names of PivotTable.
getTextOfColumnLabels()
Gets the text of “Column Labels” label in the PivotTable.
Returns: The text of column labels
getTextOfRowLabels()
Gets the text of “Row Labels” label in the PivotTable.
Returns: The text of row labels
getTextOfEmptyData()
Gets the text of “(blank)” label in the PivotTable.
Returns: The 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
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)
getTextOfSubTotal(subTotalType)
Gets the text of PivotFieldSubtotalType type in the PivotTable.
| Parameter | Type | Description |
|---|---|---|
| subTotalType | int | A PivotFieldSubtotalType value. The PivotFieldSubtotalType |
Returns: The text of given type