HotXLS Docs

TXLSXChartTrendline class

Unit: lxHandleX
Chart trendline descriptor (trendline type, display equation / R-squared, polynomial order, moving-average period, name)

Description

Chart trendline descriptor (trendline type, display equation / R-squared, polynomial order, moving-average period, name) The class is part of the XLSX facade (lxHandleX) and is reached through the owning workbook or worksheet; instances are not normally created directly by application code

Properties

TrendlineType
DispEq
DispRSqr
Order
Period
Name
Intercept
InterceptSet
Forward
Backward

Independent line appearance

The class inherits TXLSXChartLineAppearance, exposing independent RGB, point width, visibility and hidden-style restoration properties

The default trendline stroke is 1.25 points; represented Line and Scatter portable output uses explicit overrides when set and otherwise resolves the series color

See the supported capture and persistence profile for stored appearance limits, explicit reset and native-evidence boundaries

Owned label appearance

LabelLayout and LabelTextStyle expose owner-bound children with deep-copy, write-lease and generation semantics

LabelNumberFormat and LabelSourceLinked persist scalar-only label state, while LabelAppearanceSupported reports whether imported appearance is represented without promising portable rendering for every represented font or layout

Unchanged unsupported raw charts remain saveable; an edited reconstruction or raw removal refuses writing while label appearance is unrepresented

Computed label text

XLSTrendlineEquationLabel exposes shared equation/R-squared computation, including a fixed-intercept overload, while semantic snapshots derive the represented text from each owning plot group's cached points and display switches

See native-qualified text and numerical limits and the explicit linear Scatter rendering profile; arbitrary superscript font runs and automatic label placement remain separate work

See also