SettablePivotGlobalizationSettings
SettablePivotGlobalizationSettings class
Implementation of PivotGlobalizationSettings that supports user to set/change pre-defined texts.
Constructors
| Name | Description |
|---|---|
| SettablePivotGlobalizationSettings |
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 |
| setTextOfTotal | Sets the text of “Total” label in the PivotTable. |
| getTextOfGrandTotal | Gets the text of “Grand Total” label in the PivotTable. |
| setTextOfGrandTotal | Sets the text of “Grand Total” label in the PivotTable. |
| getTextOfMultipleItems | Gets the text of “(Multiple Items)” label in the PivotTable. |
| setTextOfMultipleItems | Sets the text of “(Multiple Items)” label in the PivotTable. |
| getTextOfAll | Gets the text of “(All)” label in the PivotTable. |
| setTextOfAll | Sets the text of “(All)” label in the PivotTable. |
| getTextOfProtectedName | Gets 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.
| Parameter | Type | Description |
|---|---|---|
| text | String | custom 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.
| Parameter | Type | Description |
|---|---|---|
| text | String | custom 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.
| Parameter | Type | Description |
|---|---|---|
| text | String | custom 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.
| Parameter | Type | Description |
|---|---|---|
| text | String | custom 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.
| Parameter | Type | Description |
|---|---|---|
| protectedName | String | The protected name in PivotTable. |
Returns: The local prorected names of PivotTable.
setTextOfProtectedName(protectedName, text)
Sets the text for specific protected name.
| Parameter | Type | Description |
|---|---|---|
| protectedName | String | The protected name in PivotTable. |
| text | String | The 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.
| Parameter | Type | Description |
|---|---|---|
| text | String | The 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.
| Parameter | Type | Description |
|---|---|---|
| text | String | The 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.
| Parameter | Type | Description |
|---|---|---|
| text | String | 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
setTextOfDataFieldHeader(text)
Sets the the text of the value area field header in the PivotTable.
| Parameter | Type | Description |
|---|---|---|
| text | String | The text of data field header name |
getTextOfSubTotal(subTotalType)
Gets the text of PivotFieldSubtotalType type in the PivotTable.
| Parameter | Type | Description |
|---|---|---|
| subTotalType | Number | A PivotFieldSubtotalType value. The PivotFieldSubtotalType |
Returns: The text of given type
setTextOfSubTotal(subTotalType, text)
Sets the text of PivotFieldSubtotalType type in the PivotTable.
| Parameter | Type | Description |
|---|---|---|
| subTotalType | Number | A PivotFieldSubtotalType value. The PivotFieldSubtotalType |
| text | String | The 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”