Aspose::Cells::Timelines::TimelineCollection::Add method

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

Add a new Timeline using PivotTable as data source.

int32_t Aspose::Cells::Timelines::TimelineCollection::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 Timeline range.
columnint32_tColumn index of the cell in the upper-left corner of the Timeline range.
baseFieldNameconst U16String&The name of PivotField in PivotTable.BaseFields

ReturnValue

The new add Timeline index

Examples

//Add a new Timeline using PivotTable as data source
U16String val = u"date";
sheet.GetTimelines().Add(pivotTable, 10, 5, val);

See Also

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

Add a new Timeline using PivotTable as data source.

int32_t Aspose::Cells::Timelines::TimelineCollection::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 Timeline range.
columnint32_tColumn index of the cell in the upper-left corner of the Timeline range.
baseFieldNameconst char16_t*The name of PivotField in PivotTable.BaseFields

ReturnValue

The new add Timeline index

Examples

    //Add a new Timeline using PivotTable as data source
sheet.GetTimelines().Add(pivotTable, 10, 5, u"date");

See Also

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

Add a new Timeline using PivotTable as data source.

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

ReturnValue

The new add Timeline index

Examples

//Add a new Timeline using PivotTable as data source
U16String val1 = u"i15";
U16String val2 = u"date";
sheet.GetTimelines().Add(pivotTable, val1, val2);

See Also

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

Add a new Timeline using PivotTable as data source.

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

ReturnValue

The new add Timeline index

Examples

    //Add a new Timeline using PivotTable as data source
sheet.GetTimelines().Add(pivotTable, u"i15", u"date");

See Also

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

Add a new Timeline using PivotTable as data source.

int32_t Aspose::Cells::Timelines::TimelineCollection::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 Timeline range.
columnint32_tColumn index of the cell in the upper-left corner of the Timeline range.
baseFieldIndexint32_tThe index of PivotField in PivotTable.BaseFields

ReturnValue

The new add Timeline index

Examples

    //Add a new Timeline using PivotTable as data source
sheet.GetTimelines().Add(pivotTable, 15, 5, 1);

See Also

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

Add a new Timeline using PivotTable as data source.

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

ReturnValue

The new add Timeline index

Examples

//Add a new Timeline using PivotTable as data source
U16String val = u"i5";
sheet.GetTimelines().Add(pivotTable, val, 1);

See Also

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

Add a new Timeline using PivotTable as data source.

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

ReturnValue

The new add Timeline index

Examples

    //Add a new Timeline using PivotTable as data source
sheet.GetTimelines().Add(pivotTable, u"i5", 1);

See Also

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

Add a new Timeline using PivotTable as data source.

int32_t Aspose::Cells::Timelines::TimelineCollection::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 Timeline range.
columnint32_tColumn index of the cell in the upper-left corner of the Timeline range.
baseFieldconst PivotField&The PivotField in PivotTable.BaseFields

ReturnValue

The new add Timeline index

Examples

    //Add a new Timeline using PivotTable as data source
sheet.GetTimelines().Add(pivotTable, 20, 5, pivotTable.GetBaseFields().Get(1));

See Also

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

Add a new Timeline using PivotTable as data source.

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

ReturnValue

The new add Timeline index

Examples

//Add a new Timeline using PivotTable as data source
U16String val = u"i10";
sheet.GetTimelines().Add(pivotTable, val, pivotTable.GetBaseFields().Get(1));

See Also

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

Add a new Timeline using PivotTable as data source.

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

ReturnValue

The new add Timeline index

Examples

//Add a new Timeline using PivotTable as data source
sheet.GetTimelines().Add(pivotTable, u"i10", pivotTable.GetBaseFields().Get(1));

See Also