A collection of [[Trendline]] objects belonging to the same [[Series]].
Constructors
Section titled "Constructors"TrendlineCollection
new TrendlineCollection(a: IChartObject): TrendlineCollection Returns TrendlineCollection
Properties
Section titled "Properties"$t: Type Accessors
Section titled "Accessors"chart
Section titled "chart"Inherited from: ChartObject
count
Section titled "count"Returns the number of items in the collection (read-only)
get count(): number
Returns number
isReadOnly
Section titled "isReadOnly"Determines if the collecion can be modified (read-only)
get isReadOnly(): boolean
Returns boolean
owner
Section titled "owner"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
sheet
Section titled "sheet"Inherited from: ChartObject
workbook
Section titled "workbook"Inherited from: ChartObject
worksheet
Section titled "worksheet"Inherited from: ChartObject
Methods
Section titled "Methods"[iterator]
Section titled "[iterator]"[iterator](): EnumeratorWrapper<Trendline> Returns EnumeratorWrapper<Trendline>
Adds a new [[Trendline]] to the collection
add(): Trendline Returns Trendline
clear
Section titled "clear"Clears the collection.
clear(): void Returns void
contains
Section titled "contains"Returns a boolean value indicating whether the specified instance is contained within this collection.
contains(item: Trendline): boolean Parameters
- item:
TrendlineThe item to check
Returns boolean
getEnumerator
Section titled "getEnumerator"getEnumerator(): any Returns any
getEnumeratorObject
Section titled "getEnumeratorObject"getEnumeratorObject(): any Returns any
indexOf
Section titled "indexOf"Returns the index of the item in the collection.
indexOf(item: Trendline): number Parameters
- item:
TrendlineThe item to check
Returns number
insert
Section titled "insert"Inserts a new [[Trendline]] into the collection at the specified index.
insert(index: number): Trendline Parameters
- index:
numberThe 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
remove
Section titled "remove"Removes an item from the collection.
remove(item: Trendline): boolean Parameters
- item:
TrendlineThe [[Trendline]] to remove
Returns boolean
removeAt
Section titled "removeAt"Removes the series at the specified index
removeAt(index: number): void Parameters
- index:
numberThe zero-based index
Returns void
staticInit
Section titled "staticInit"staticInit(): void