# NxTrendline Class

Namespace: [Qlik.Engine](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.htm)  
Assembly: Qlik.Engine.dll

Information about the calculated trendline.

## Inheritance

* System.Object
  * [AbstractStructure](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.AbstractStructure.htm)
    * NxTrendline

## Syntax

```
[ValueClass]
public class NxTrendline : AbstractStructure, IDisposable, INxTrendline, IAbstractStructure
```

## Constructors

| Name | Description |
| --- | --- |
| [NxTrendline()](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxTrendline.-ctor.htm#Qlik_Engine_NxTrendline__ctor) | Creates an instance of the NxTrendline class |

## Properties

| Name | Description |
| --- | --- |
| [Coeff](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxTrendline.Coeff.htm#Qlik_Engine_NxTrendline_Coeff) | Coefficent c0..cN depending on the trendline type.<br><br>JSON property name: qCoeff |
| [ElemNo](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxTrendline.ElemNo.htm#Qlik_Engine_NxTrendline_ElemNo) | Inner Dim elem no<br><br>JSON property name: qElemNo |
| [Error](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxTrendline.Error.htm#Qlik_Engine_NxTrendline_Error) | This parameter is optional and is displayed in case of error.<br><br>JSON property name: qError |
| [Expression](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxTrendline.Expression.htm#Qlik_Engine_NxTrendline_Expression) | Trendline expression<br><br>JSON property name: qExpression |
| [R2](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxTrendline.R2.htm#Qlik_Engine_NxTrendline_R2) | R2 score. Value between 0..1 that shows the correlation between the trendline and the data. Higher value means higher correlation.<br><br>JSON property name: qR2 |
| [Type](https://help.qlik.com/en-US/sense-developer/May2026/Subsystems/NetSDKAPIref/Content/Qlik.Engine.NxTrendline.Type.htm#Qlik_Engine_NxTrendline_Type) | Type of trendline<br><br>JSON property name: qType |