A collection of [[Trendline]] objects belonging to the same [[Series]].

TrendlineCollection

new TrendlineCollection(a: IChartObject): TrendlineCollection

Returns TrendlineCollection

Inherited from: ChartObject

Returns the owning chart (read-only)

get chart(): WorksheetChart

Returns WorksheetChart

Returns the number of items in the collection (read-only)

get count(): number

Returns number

Determines if the collecion can be modified (read-only)

get isReadOnly(): boolean

Returns boolean

Inherited from: ChartObject

returns this object's owner. (read-only) The owner or null if this object is owned directly by the Chart

get owner(): ChartObject

Returns ChartObject

Inherited from: ChartObject

The owning sheet (read-only)

get sheet(): Sheet

Returns Sheet

Inherited from: ChartObject

The owning workbook (read-only)

get workbook(): Workbook

Returns Workbook

Inherited from: ChartObject

The owning worksheet (read-only)

get worksheet(): Worksheet

Returns Worksheet

[iterator](): EnumeratorWrapper<Trendline>

Returns EnumeratorWrapper<Trendline>

Adds a new [[Trendline]] to the collection

add(): Trendline

Returns Trendline

Clears the collection.

clear(): void

Returns void

Returns a boolean value indicating whether the specified instance is contained within this collection.

contains(item: Trendline): boolean

Parameters

Returns boolean

getEnumerator(): any

Returns any

getEnumeratorObject(): any

Returns any

Returns the index of the item in the collection.

indexOf(item: Trendline): number

Parameters

Returns number

Inserts a new [[Trendline]] into the collection at the specified index.

insert(index: number): Trendline

Parameters

  • index: number

    The index at which to insert the new trendline.

Returns Trendline

Returns the [[Trendline]] instance at the specified ordinal position within the collection.

item(a: number): Trendline

Parameters

  • a: number

Returns Trendline

Removes an item from the collection.

remove(item: Trendline): boolean

Parameters

  • item: Trendline

    The [[Trendline]] to remove

Returns boolean

Removes the series at the specified index

removeAt(index: number): void

Parameters

  • index: number

    The zero-based index

Returns void

staticInit(): void

Returns void