SparklineCollection

SparklineCollection class

Encapsulates a collection of Sparkline objects.

class SparklineCollection;

Methods

MethodDescription
get(number)Gets the Sparkline element at the specified index.
add(string, number, number)Add a sparkline.
remove(VObject)Removes the sparkline
removeSparkline(Sparkline)Removes the sparkline

get(number)

Gets the Sparkline element at the specified index.

get(index: number) : Sparkline;

Parameters:

ParameterTypeDescription
indexnumberThe zero based index of the element.

Returns

The element at the specified index.

add(string, number, number)

Add a sparkline.

add(dataRange: string, row: number, column: number) : number;

Parameters:

ParameterTypeDescription
dataRangestringSpecifies the new data range of the sparkline.
rownumberThe row index of the location.
columnnumberThe column index of the location.

remove(VObject)

Removes the sparkline

remove(o: VObject) : void;

Parameters:

ParameterTypeDescription
oVObject

Remarks

NOTE: This member is now obsolete. Instead, please use RemoveSparkline() method. This method will be removed 6 months later since December 2025. Aspose apologizes for any inconvenience you may have experienced.

removeSparkline(Sparkline)

Removes the sparkline

removeSparkline(o: Sparkline) : void;

Parameters:

ParameterTypeDescription
oSparkline