TrendLine Class
Represents an individual Trend Line.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v18.1.dll
Declaration
[TypeConverter(typeof(TrendLineTypeConverter))]
public class TrendLine :
FinancialIndicator
Related API Members
The following members accept/return TrendLine objects:
Remarks
Objects of the TrendLine type are contained in the IndicatorCollection returned by the XYDiagram2DSeriesViewBase.Indicators property.
To create a Trend Line, it is necessary to specify its FinancialIndicator.Point1 and FinancialIndicator.Point2 properties. And, each point is defined by its FinancialIndicatorPoint.Argument and FinancialIndicatorPoint.ValueLevel properties.
To extend a Trend Line to infinity, enable its TrendLine.ExtrapolateToInfinity property.
For more information, see Trend Lines.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TrendLine class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.