[]
• new PivotTableTheme()
表示数据透视表主题类。
▸ blankRowStyle(value?): any
description 获取或设置数据透视表主题的空白行样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ columnSubheading1Style(value?): any
description 获取或设置数据透视表主题的列子标题1样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ columnSubheading2Style(value?): any
description 获取或设置数据透视表主题的列子标题2样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ columnSubheading3Style(value?): any
description 获取或设置数据透视表主题的列子标题3样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ firstColumnStripSize(value?): any
description 获取或设置数据透视表主题的首列条纹大小
| Name | Type |
|---|---|
value? |
number |
any
若未设置值,则返回首列交替条纹的大小;否则返回数据透视表主题。
▸ firstColumnStripeStyle(value?): any
description 获取或设置数据透视表主题的首列条纹样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ firstColumnStyle(value?): any
description 获取或设置数据透视表主题的首列样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ firstHeaderCellStyle(value?): any
description 获取或设置数据透视表主题的首标题单元格样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ firstRowStripSize(value?): any
description 获取或设置数据透视表主题的首行条纹大小
| Name | Type |
|---|---|
value? |
number |
any
若未设置值,则返回首行交替条纹的大小;否则返回数据透视表主题。
▸ firstRowStripeStyle(value?): any
description 获取或设置数据透视表主题的首行条纹样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ fromJSON(data): void
从指定的JSON字符串加载对象状态。
example
// 此示例使用fromJSON方法。
const light1 = GC.Spread.Pivot.PivotTableTheme.light1;
// 导出
const jsonStr = JSON.stringify(light1.toJSON());
// 导入
const newTheme = new GC.Spread.Pivot.PivotTableTheme();
newTheme.fromJSON(JSON.parse(jsonStr));
newTheme.name('custom1');
alert(jsonStr);
| Name | Type | Description |
|---|---|---|
data |
Object |
反序列化后的数据透视表主题数据。 |
void
▸ grandTotalColumnStyle(value?): any
description 获取或设置数据透视表主题的总计列样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ grandTotalRowStyle(value?): any
description 获取或设置数据透视表主题的总计行样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ headerRowStyle(value?): any
description 获取或设置数据透视表主题的标题行样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ name(value?): any
description 获取或设置数据透视表主题的名称
| Name | Type |
|---|---|
value? |
string |
any
若未设置值,则返回样式名称;否则返回表主题。
▸ reportFilterLabelsStyle(value?): any
description 获取或设置数据透视表主题的报表筛选标签样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ reportFilterValuesStyle(value?): any
description 获取或设置数据透视表主题的报表筛选值样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ rowSubheading1Style(value?): any
description 获取或设置数据透视表主题的行子标题1样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ rowSubheading2Style(value?): any
description 获取或设置数据透视表主题的行子标题2样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ rowSubheading3Style(value?): any
description 获取或设置数据透视表主题的行子标题3样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ secondColumnStripSize(value?): any
description 获取或设置数据透视表主题的次列条纹大小
| Name | Type |
|---|---|
value? |
number |
any
若未设置值,则返回次列交替条纹的大小;否则返回数据透视表主题。
▸ secondColumnStripeStyle(value?): any
description 获取或设置数据透视表主题的次列条纹样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ secondRowStripSize(value?): any
description 获取或设置数据透视表主题的次行条纹大小
| Name | Type |
|---|---|
value? |
number |
any
若未设置值,则返回次行交替条纹的大小;否则返回数据透视表主题。
▸ secondRowStripeStyle(value?): any
description 获取或设置数据透视表主题的次行条纹样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ subtotalColumn1Style(value?): any
description 获取或设置数据透视表主题的小计列1样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ subtotalColumn2Style(value?): any
description 获取或设置数据透视表主题的小计列2样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ subtotalColumn3Style(value?): any
description 获取或设置数据透视表主题的小计列3样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ subtotalRow1Style(value?): any
description 获取或设置数据透视表主题的小计行1样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ subtotalRow2Style(value?): any
description 获取或设置数据透视表主题的小计行2样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ subtotalRow3Style(value?): any
description 获取或设置数据透视表主题的小计行3样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。
▸ toJSON(): Object
将对象状态保存为JSON字符串。
example
// 此示例使用toJSON方法。
const light1 = GC.Spread.Pivot.PivotTableTheme.light1;
// 导出
const jsonStr = JSON.stringify(light1.toJSON());
// 导入
const newTheme = new GC.Spread.Pivot.PivotTableTheme();
newTheme.fromJSON(JSON.parse(jsonStr));
newTheme.name('custom1');
alert(jsonStr);
Object
数据透视表主题数据。
▸ wholeTableStyle(value?): any
description 获取或设置数据透视表主题的全表样式
| Name | Type |
|---|---|
value? |
PivotTableStyle |
any
若未设置值,则返回数据区域的默认样式;否则返回数据透视表主题。