TimelineCollection.Add

Add(PivotTable, int, int, string)

Add a new Timeline using PivotTable as data source

public int Add(PivotTable pivot, int row, int column, string baseFieldName)
ParameterTypeDescription
pivotPivotTablePivotTable object
rowInt32Row index of the cell in the upper-left corner of the Timeline range.
columnInt32Column index of the cell in the upper-left corner of the Timeline range.
baseFieldNameStringThe name of PivotField in PivotTable.BaseFields

Return Value

The new add Timeline index

Examples


[C#]
//Add a new Timeline using PivotTable as data source
sheet.Timelines.Add(pivot, 10, 5, "date");

See Also


Add(PivotTable, string, string)

Add a new Timeline using PivotTable as data source

public int Add(PivotTable pivot, string destCellName, string baseFieldName)
ParameterTypeDescription
pivotPivotTablePivotTable object
destCellNameStringThe cell name in the upper-left corner of the Timeline range.
baseFieldNameStringThe name of PivotField in PivotTable.BaseFields

Return Value

The new add Timeline index

Examples


[C#]
//Add a new Timeline using PivotTable as data source
sheet.Timelines.Add(pivot, "i15", "date");

See Also


Add(PivotTable, int, int, int)

Add a new Timeline using PivotTable as data source

public int Add(PivotTable pivot, int row, int column, int baseFieldIndex)
ParameterTypeDescription
pivotPivotTablePivotTable object
rowInt32Row index of the cell in the upper-left corner of the Timeline range.
columnInt32Column index of the cell in the upper-left corner of the Timeline range.
baseFieldIndexInt32The index of PivotField in PivotTable.BaseFields

Return Value

The new add Timeline index

Examples


[C#]
//Add a new Timeline using PivotTable as data source
sheet.Timelines.Add(pivot, 15, 5, 1);

See Also


Add(PivotTable, string, int)

Add a new Timeline using PivotTable as data source

public int Add(PivotTable pivot, string destCellName, int baseFieldIndex)
ParameterTypeDescription
pivotPivotTablePivotTable object
destCellNameStringThe cell name in the upper-left corner of the Timeline range.
baseFieldIndexInt32The index of PivotField in PivotTable.BaseFields

Return Value

The new add Timeline index

Examples


[C#]
//Add a new Timeline using PivotTable as data source
sheet.Timelines.Add(pivot, "i5", 1);

See Also


Add(PivotTable, int, int, PivotField)

Add a new Timeline using PivotTable as data source

public int Add(PivotTable pivot, int row, int column, PivotField baseField)
ParameterTypeDescription
pivotPivotTablePivotTable object
rowInt32Row index of the cell in the upper-left corner of the Timeline range.
columnInt32Column index of the cell in the upper-left corner of the Timeline range.
baseFieldPivotFieldThe PivotField in PivotTable.BaseFields

Return Value

The new add Timeline index

Examples


[C#]
//Add a new Timeline using PivotTable as data source
sheet.Timelines.Add(pivot, 20, 5, pivot.BaseFields[1]);

See Also


Add(PivotTable, string, PivotField)

Add a new Timeline using PivotTable as data source

public int Add(PivotTable pivot, string destCellName, PivotField baseField)
ParameterTypeDescription
pivotPivotTablePivotTable object
destCellNameStringThe cell name in the upper-left corner of the Timeline range.
baseFieldPivotFieldThe PivotField in PivotTable.BaseFields

Return Value

The new add Timeline index

Examples


[C#]
//Add a new Timeline using PivotTable as data source
sheet.Timelines.Add(pivot, "i10", pivot.BaseFields[1]);

See Also