Aspose::Cells::Slicers::SlicerCollection::Add method

Contents
[ ]

SlicerCollection::Add(const PivotTable&, const U16String&, const U16String&) method

Add a new Slicer using PivotTable as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const PivotTable &pivot, const U16String &destCellName, const U16String &baseFieldName)
ParameterTypeDescription
pivotconst PivotTable&PivotTable object
destCellNameconst U16String&The cell in the upper-left corner of the Slicer range.
baseFieldNameconst U16String&The name of PivotField in PivotTable.BaseFields

ReturnValue

The new add Slicer index

Examples

U16String val1 = u"E3";
U16String val2 = u"fruit";
slicers.Add(pivotTable, val1, val2);

See Also

SlicerCollection::Add(const PivotTable&, const char16_t*, const char16_t*) method

Add a new Slicer using PivotTable as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const PivotTable &pivot, const char16_t *destCellName, const char16_t *baseFieldName)
ParameterTypeDescription
pivotconst PivotTable&PivotTable object
destCellNameconst char16_t*The cell in the upper-left corner of the Slicer range.
baseFieldNameconst char16_t*The name of PivotField in PivotTable.BaseFields

ReturnValue

The new add Slicer index

Examples

slicers.Add(pivot, u"E3", u"fruit");

See Also

SlicerCollection::Add(const PivotTable&, int32_t, int32_t, const U16String&) method

Add a new Slicer using PivotTable as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const PivotTable &pivot, int32_t row, int32_t column, const U16String &baseFieldName)
ParameterTypeDescription
pivotconst PivotTable&PivotTable object
rowint32_tRow index of the cell in the upper-left corner of the Slicer range.
columnint32_tColumn index of the cell in the upper-left corner of the Slicer range.
baseFieldNameconst U16String&The name of PivotField in PivotTable.BaseFields

ReturnValue

The new add Slicer index

Examples

U16String val = u"fruit";
slicers.Add(pivotTable, 20, 12, val);

See Also

SlicerCollection::Add(const PivotTable&, int32_t, int32_t, const char16_t*) method

Add a new Slicer using PivotTable as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const PivotTable &pivot, int32_t row, int32_t column, const char16_t *baseFieldName)
ParameterTypeDescription
pivotconst PivotTable&PivotTable object
rowint32_tRow index of the cell in the upper-left corner of the Slicer range.
columnint32_tColumn index of the cell in the upper-left corner of the Slicer range.
baseFieldNameconst char16_t*The name of PivotField in PivotTable.BaseFields

ReturnValue

The new add Slicer index

Examples

slicers.Add(pivotTable, 20, 12, u"fruit");

See Also

SlicerCollection::Add(const PivotTable&, int32_t, int32_t, int32_t) method

Add a new Slicer using PivotTable as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const PivotTable &pivot, int32_t row, int32_t column, int32_t baseFieldIndex)
ParameterTypeDescription
pivotconst PivotTable&PivotTable object
rowint32_tRow index of the cell in the upper-left corner of the Slicer range.
columnint32_tColumn index of the cell in the upper-left corner of the Slicer range.
baseFieldIndexint32_tThe index of PivotField in PivotTable.BaseFields

ReturnValue

The new add Slicer index

Examples

slicers.Add(pivotTable, 20, 8, 0);

See Also

SlicerCollection::Add(const PivotTable&, const U16String&, int32_t) method

Add a new Slicer using PivotTable as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const PivotTable &pivot, const U16String &destCellName, int32_t baseFieldIndex)
ParameterTypeDescription
pivotconst PivotTable&PivotTable object
destCellNameconst U16String&The cell in the upper-left corner of the Slicer range.
baseFieldIndexint32_tThe index of PivotField in PivotTable.BaseFields

ReturnValue

The new add Slicer index

Examples

U16String val = u"E20";
slicers.Add(pivotTable, val, 0);

See Also

SlicerCollection::Add(const PivotTable&, const char16_t*, int32_t) method

Add a new Slicer using PivotTable as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const PivotTable &pivot, const char16_t *destCellName, int32_t baseFieldIndex)
ParameterTypeDescription
pivotconst PivotTable&PivotTable object
destCellNameconst char16_t*The cell in the upper-left corner of the Slicer range.
baseFieldIndexint32_tThe index of PivotField in PivotTable.BaseFields

ReturnValue

The new add Slicer index

Examples

slicers.Add(pivotTable, u"E20", 0);

See Also

SlicerCollection::Add(const PivotTable&, int32_t, int32_t, const PivotField&) method

Add a new Slicer using PivotTable as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const PivotTable &pivot, int32_t row, int32_t column, const PivotField &baseField)
ParameterTypeDescription
pivotconst PivotTable&PivotTable object
rowint32_tRow index of the cell in the upper-left corner of the Slicer range.
columnint32_tColumn index of the cell in the upper-left corner of the Slicer range.
baseFieldconst PivotField&The PivotField in PivotTable.BaseFields

ReturnValue

The new add Slicer index

Examples

slicers.Add(pivotTable, 3, 12, pivotTable.GetBaseFields().Get(0));

See Also

SlicerCollection::Add(const PivotTable&, const U16String&, const PivotField&) method

Add a new Slicer using PivotTable as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const PivotTable &pivot, const U16String &destCellName, const PivotField &baseField)
ParameterTypeDescription
pivotconst PivotTable&PivotTable object
destCellNameconst U16String&The cell in the upper-left corner of the Slicer range.
baseFieldconst PivotField&The PivotField in PivotTable.BaseFields

ReturnValue

The new add Slicer index

Examples

U16String val = u"I3";
slicers.Add(pivotTable, val, pivotTable.GetBaseFields().Get(0));

See Also

SlicerCollection::Add(const PivotTable&, const char16_t*, const PivotField&) method

Add a new Slicer using PivotTable as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const PivotTable &pivot, const char16_t *destCellName, const PivotField &baseField)
ParameterTypeDescription
pivotconst PivotTable&PivotTable object
destCellNameconst char16_t*The cell in the upper-left corner of the Slicer range.
baseFieldconst PivotField&The PivotField in PivotTable.BaseFields

ReturnValue

The new add Slicer index

Examples

slicers.Add(pivotTable, u"I3", pivotTable.GetBaseFields().Get(0));

See Also

SlicerCollection::Add(const ListObject&, int32_t, const U16String&) method

Add a new Slicer using ListObjet as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const ListObject &table, int32_t index, const U16String &destCellName)
ParameterTypeDescription
tableconst ListObject&ListObject object
indexint32_tThe index of ListColumn in ListObject.ListColumns
destCellNameconst U16String&The cell in the upper-left corner of the Slicer range.

ReturnValue

The new add Slicer index

Examples

U16String val = u"E38";
slicers.Add(listTable, 1, val);

See Also

SlicerCollection::Add(const ListObject&, int32_t, const char16_t*) method

Add a new Slicer using ListObjet as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const ListObject &table, int32_t index, const char16_t *destCellName)
ParameterTypeDescription
tableconst ListObject&ListObject object
indexint32_tThe index of ListColumn in ListObject.ListColumns
destCellNameconst char16_t*The cell in the upper-left corner of the Slicer range.

ReturnValue

The new add Slicer index

Examples

slicers.Add(listTable, 1, u"E38");

See Also

SlicerCollection::Add(const ListObject&, const ListColumn&, const U16String&) method

Add a new Slicer using ListObjet as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const ListObject &table, const ListColumn &listColumn, const U16String &destCellName)
ParameterTypeDescription
tableconst ListObject&ListObject object
listColumnconst ListColumn&The ListColumn in ListObject.ListColumns
destCellNameconst U16String&The cell in the upper-left corner of the Slicer range.

ReturnValue

The new add Slicer index

Examples

U16String val = u"I38";
slicers.Add(listTable, listTable.GetListColumns().Get(1), val);

See Also

SlicerCollection::Add(const ListObject&, const ListColumn&, const char16_t*) method

Add a new Slicer using ListObjet as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const ListObject &table, const ListColumn &listColumn, const char16_t *destCellName)
ParameterTypeDescription
tableconst ListObject&ListObject object
listColumnconst ListColumn&The ListColumn in ListObject.ListColumns
destCellNameconst char16_t*The cell in the upper-left corner of the Slicer range.

ReturnValue

The new add Slicer index

Examples

slicers.Add(listTable, listTable.GetListColumns().Get(1), u"I38");

See Also

SlicerCollection::Add(const ListObject&, const ListColumn&, int32_t, int32_t) method

Add a new Slicer using ListObjet as data source.

int32_t Aspose::Cells::Slicers::SlicerCollection::Add(const ListObject &table, const ListColumn &listColumn, int32_t row, int32_t column)
ParameterTypeDescription
tableconst ListObject&ListObject object
listColumnconst ListColumn&The ListColumn in ListObject.ListColumns
rowint32_tRow index of the cell in the upper-left corner of the Slicer range.
columnint32_tColumn index of the cell in the upper-left corner of the Slicer range.

ReturnValue

The new add Slicer index

Examples

slicers.Add(listTable, listTable.GetListColumns().Get(1), 38, 12);

See Also