Represents a [[Trendline]] label.
Constructors
Section titled "Constructors"TrendlineLabel
new TrendlineLabel(): TrendlineLabel Returns TrendlineLabel
Properties
Section titled "Properties"$t: Type border
Section titled "border"Inherited from: ChartLabelBase
border: ChartBorder displayEquation
Section titled "displayEquation"displayEquation: boolean displayRSquared
Section titled "displayRSquared"displayRSquared: boolean Inherited from: ChartLabelBase
fill: ChartFillBase horizontalOverflow
Section titled "horizontalOverflow"Inherited from: ChartLabelBase
horizontalOverflow: TextHorizontalOverflow Inherited from: ChartLabelBase
left: number numberFormat
Section titled "numberFormat"Inherited from: ChartLabelBase
numberFormat: string numberFormatLinked
Section titled "numberFormatLinked"Inherited from: ChartLabelBase
numberFormatLinked: boolean position
Section titled "position"Inherited from: ChartLabelBase
position: ElementPosition readingOrder
Section titled "readingOrder"Inherited from: ChartLabelBase
readingOrder: ReadingOrder rotation
Section titled "rotation"Inherited from: ChartLabelBase
rotation: number Inherited from: ChartLabelBase
text: FormattedString textDirection
Section titled "textDirection"Inherited from: ChartLabelBase
textDirection: TextDirection Inherited from: ChartLabelBase
top: number verticalAlignment
Section titled "verticalAlignment"Inherited from: ChartLabelBase
verticalAlignment: VerticalTitleAlignment verticalOverflow
Section titled "verticalOverflow"Inherited from: ChartLabelBase
verticalOverflow: TextVerticalOverflow wrapText
Section titled "wrapText"Inherited from: ChartLabelBase
wrapText: boolean Accessors
Section titled "Accessors"chart
Section titled "chart"Inherited from: ChartLabelBase
defaultFont
Section titled "defaultFont"Inherited from: ChartLabelBase
Defines the font properties for each formatted run in the [[text]] that has no more specific setting. Read-only.
get defaultFont(): IWorkbookFont Returns IWorkbookFont
formula
Section titled "formula"Inherited from: ChartLabelBase
The formula used to get the text displayed within the text area. (read-only). To set this property call the SetFormula method.
get formula(): Formula Returns Formula
owner
Section titled "owner"Inherited from: ChartLabelBase
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: ChartLabelBase
workbook
Section titled "workbook"Inherited from: ChartLabelBase
worksheet
Section titled "worksheet"Inherited from: ChartLabelBase
Methods
Section titled "Methods"setFormula
Section titled "setFormula"Inherited from: ChartLabelBase
Assigns a new [[Formula]] to this instance.
setFormula(formula: string, cellReferenceMode: CellReferenceMode): void Parameters
- formula:
stringThe string representation of the formula used to get the [[text]].
- cellReferenceMode:
CellReferenceModeA [[CellReferenceMode]] value which specifies whether the 'formula' parameter should be interpreted as an A1 or R1C1 expression. This parameter is optional and defaults to null, in which case the [[Workbook.cellReferenceMode]] property is used.
Returns void
staticInit
Section titled "staticInit"staticInit(): void