add方法
内容
[
隐藏
]add(self, pivot, dest_cell_name, base_field_name)
使用数据透视表作为数据源添加新的切片器
返回
新的add切片机索引
def add(self, pivot, dest_cell_name, base_field_name):
    ...
| 范围 | 类型 | 描述 | 
|---|---|---|
| pivot | aspose.cells.pivot.PivotTable | 数据透视表对象 | 
| dest_cell_name | str | 切片器范围左上角的单元格。 | 
| base_field_name | str | PivotTable.BaseFields 中 PivotField 的名称 | 
例子
slicers.add(pivot, "E3", "fruit")
add(self, pivot, dest_cell_name, base_field_index)
使用数据透视表作为数据源添加新的切片器
返回
新的add切片机索引
def add(self, pivot, dest_cell_name, base_field_index):
    ...
| 范围 | 类型 | 描述 | 
|---|---|---|
| pivot | aspose.cells.pivot.PivotTable | 数据透视表对象 | 
| dest_cell_name | str | 切片器范围左上角的单元格。 | 
| base_field_index | int | PivotField 在 PivotTable.BaseFields 中的索引 | 
例子
slicers.add(pivot, "E20", 0)
add(self, pivot, dest_cell_name, base_field)
使用数据透视表作为数据源添加新的切片器
返回
新的add切片机索引
def add(self, pivot, dest_cell_name, base_field):
    ...
| 范围 | 类型 | 描述 | 
|---|---|---|
| pivot | aspose.cells.pivot.PivotTable | 数据透视表对象 | 
| dest_cell_name | str | 切片器范围左上角的单元格。 | 
| base_field | aspose.cells.pivot.PivotField | PivotTable.BaseFields 中的 PivotField | 
例子
slicers.add(pivot, "I3", pivot.base_fields[0])
add(self, table, index, dest_cell_name)
使用 ListObjet 作为数据源添加新的切片器
返回
新的add切片机索引
def add(self, table, index, dest_cell_name):
    ...
| 范围 | 类型 | 描述 | 
|---|---|---|
| table | aspose.cells.tables.ListObject | ListObject 对象 | 
| index | int | ListObject.ListColumns 中 ListColumn 的索引 | 
| dest_cell_name | str | 切片器范围左上角的单元格。 | 
例子
slicers.add(table, 1, "E38")
add(self, table, list_column, dest_cell_name)
使用 ListObjet 作为数据源添加新的切片器
返回
新的add切片机索引
def add(self, table, list_column, dest_cell_name):
    ...
| 范围 | 类型 | 描述 | 
|---|---|---|
| table | aspose.cells.tables.ListObject | ListObject 对象 | 
| list_column | aspose.cells.tables.ListColumn | ListObject.ListColumns 中的 ListColumn | 
| dest_cell_name | str | 切片器范围左上角的单元格。 | 
例子
slicers.add(table, table.list_columns[1], "I38")
add(self, pivot, row, column, base_field_name)
使用数据透视表作为数据源添加新的切片器
返回
新的add切片机索引
def add(self, pivot, row, column, base_field_name):
    ...
| 范围 | 类型 | 描述 | 
|---|---|---|
| pivot | aspose.cells.pivot.PivotTable | 数据透视表对象 | 
| row | int | 切片器范围左上角单元格的行索引。 | 
| column | int | 切片器范围左上角单元格的列索引。 | 
| base_field_name | str | PivotTable.BaseFields 中 PivotField 的名称 | 
例子
slicers.add(pivot, 20, 12, "fruit")
add(self, pivot, row, column, base_field_index)
使用数据透视表作为数据源添加新的切片器
返回
新的add切片机索引
def add(self, pivot, row, column, base_field_index):
    ...
| 范围 | 类型 | 描述 | 
|---|---|---|
| pivot | aspose.cells.pivot.PivotTable | 数据透视表对象 | 
| row | int | 切片器范围左上角单元格的行索引。 | 
| column | int | 切片器范围左上角单元格的列索引。 | 
| base_field_index | int | PivotField 在 PivotTable.BaseFields 中的索引 | 
例子
slicers.add(pivot, 20, 8, 0)
add(self, pivot, row, column, base_field)
使用数据透视表作为数据源添加新的切片器
返回
新的add切片机索引
def add(self, pivot, row, column, base_field):
    ...
| 范围 | 类型 | 描述 | 
|---|---|---|
| pivot | aspose.cells.pivot.PivotTable | 数据透视表对象 | 
| row | int | 切片器范围左上角单元格的行索引。 | 
| column | int | 切片器范围左上角单元格的列索引。 | 
| base_field | aspose.cells.pivot.PivotField | PivotTable.BaseFields 中的 PivotField | 
例子
slicers.add(pivot, 3, 12, pivot.base_fields[0])
add(self, table, list_column, row, column)
使用 ListObjet 作为数据源添加新的切片器
返回
新的add切片机索引
def add(self, table, list_column, row, column):
    ...
| 范围 | 类型 | 描述 | 
|---|---|---|
| table | aspose.cells.tables.ListObject | ListObject 对象 | 
| list_column | aspose.cells.tables.ListColumn | ListObject.ListColumns 中的 ListColumn | 
| row | int | 切片器范围左上角单元格的行索引。 | 
| column | int | 切片器范围左上角单元格的列索引。 | 
例子
slicers.add(table, table.list_columns[1], 38, 12)