ChartCollection.Add

Add(ChartType, int, int, int, int)

Adds a chart to the collection.

public int Add(ChartType type, int upperLeftRow, int upperLeftColumn, int lowerRightRow, 
    int lowerRightColumn)
ParameterTypeDescription
typeChartTypeChart type
upperLeftRowInt32Upper left row index.
upperLeftColumnInt32Upper left column index.
lowerRightRowInt32Lower right row index
lowerRightColumnInt32Lower right column index

Return Value

Chart object index.

See Also


Add(ChartType, string, int, int, int, int)

Adds a chart to the collection.

[Obsolete("Use ChartCollection.Add(ChartType, string, bool ,int , int, int, int ) instead.")]
[EditorBrowsable(EditorBrowsableState.Never)]
public int Add(ChartType type, string dataRange, int topRow, int leftColumn, int rightRow, 
    int bottomColumn)
ParameterTypeDescription
typeChartTypeChart type
dataRangeStringSpecifies the data range of the chart
topRowInt32Upper left row index.
leftColumnInt32Upper left column index.
rightRowInt32Lower right row index
bottomColumnInt32Lower right column index

Return Value

Chart object index.

Remarks

NOTE: This member is now obsolete. Instead, please use Add property. This property will be removed 12 months later since May 2022. Aspose apologizes for any inconvenience you may have experienced.

See Also


Add(byte[], string, bool, int, int, int, int)

Adds a chart with preset template.

public int Add(byte[] data, string dataRange, bool isVertical, int topRow, int leftColumn, 
    int rightRow, int bottomColumn)
ParameterTypeDescription
dataByte[]The data of chart template file(.crtx).
dataRangeStringSpecifies the data range of the chart
isVerticalBooleanSpecifies whether to plot the series from a range of cell values by row or by column.
topRowInt32Upper left row index.
leftColumnInt32Upper left column index.
rightRowInt32Lower right row index
bottomColumnInt32Lower right column index

Return Value

Chart object index.

See Also


Add(ChartType, string, bool, int, int, int, int)

Adds a chart to the collection.

public int Add(ChartType type, string dataRange, bool isVertical, int topRow, int leftColumn, 
    int rightRow, int bottomColumn)
ParameterTypeDescription
typeChartTypeChart type
dataRangeStringSpecifies the data range of the chart
isVerticalBooleanSpecifies whether to plot the series from a range of cell values by row or by column.
topRowInt32Upper left row index.
leftColumnInt32Upper left column index.
rightRowInt32Lower right row index
bottomColumnInt32Lower right column index

Return Value

Chart object index.

See Also