Represents the text area of a chart element.

ChartTextAreaBase

new ChartTextAreaBase(a: IChartObject): ChartTextAreaBase

Returns ChartTextAreaBase

$t: Type
border: ChartBorder
fill: ChartFillBase
horizontalOverflow: TextHorizontalOverflow
left: number
position: ElementPosition
readingOrder: ReadingOrder
rotation: number
text: FormattedString
textDirection: TextDirection
top: number
verticalAlignment: VerticalTitleAlignment
verticalOverflow: TextVerticalOverflow
wrapText: boolean

Inherited from: ChartObject

Returns the owning chart (read-only)

get chart(): WorksheetChart

Returns WorksheetChart

Defines the font properties for each formatted run in the [[text]] that has no more specific setting. Read-only.

get defaultFont(): IWorkbookFont

Returns IWorkbookFont

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

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

Assigns a new [[Formula]] to this instance.

setFormula(formula: string, cellReferenceMode: CellReferenceMode): void

Parameters

  • formula: string

    The string representation of the formula used to get the [[text]].

  • cellReferenceMode: CellReferenceMode

    A [[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(): void

Returns void