# C1.Win.C1Chart.TrendLine

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Chart_TrendLine" data-uid="C1.Win.C1Chart.TrendLine" class="text-break">TrendLine Class
</h1>
  <div class="markdown level0 summary"><p>The TrendLine class is used to perform a regression analysis or the specified data series,
provide statistics about the regression, and chart the result.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">TrendLine</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.C1Chart.html">C1.Win.C1Chart</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Chart.4.8.dll</h6>
  <h5 id="C1_Win_C1Chart_TrendLine_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class TrendLine : ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class TrendLine
    Implements ICloneable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine__ctor" data-uid="C1.Win.C1Chart.TrendLine.#ctor">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.-ctor.html#C1_Win_C1Chart_TrendLine__ctor">TrendLine()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.C1Chart.TrendLine.html">TrendLine</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_CustomTrendLine" data-uid="C1.Win.C1Chart.TrendLine.CustomTrendLine">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.CustomTrendLine.html#C1_Win_C1Chart_TrendLine_CustomTrendLine">CustomTrendLine</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the object that provides a user-defined calculation of the TrendLine.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_DataArray" data-uid="C1.Win.C1Chart.TrendLine.DataArray">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.DataArray.html#C1_Win_C1Chart_TrendLine_DataArray">DataArray</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the array index of y values that is used for TrendLine.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_ForecastBackward" data-uid="C1.Win.C1Chart.TrendLine.ForecastBackward">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.ForecastBackward.html#C1_Win_C1Chart_TrendLine_ForecastBackward">ForecastBackward</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value that specifies how long the trend line extends in x axis
direction relative to the appropriate data minimum.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_ForecastForward" data-uid="C1.Win.C1Chart.TrendLine.ForecastForward">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.ForecastForward.html#C1_Win_C1Chart_TrendLine_ForecastForward">ForecastForward</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value that specifies how long the trend line extends in x axis direction
relative to the appropriate data maximum.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_LegendEntry" data-uid="C1.Win.C1Chart.TrendLine.LegendEntry">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.LegendEntry.html#C1_Win_C1Chart_TrendLine_LegendEntry">LegendEntry</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the TrendLine will be shown in legend.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_LineStyle" data-uid="C1.Win.C1Chart.TrendLine.LineStyle">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.LineStyle.html#C1_Win_C1Chart_TrendLine_LineStyle">LineStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the line style used  to plot the TrendLine.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_Period" data-uid="C1.Win.C1Chart.TrendLine.Period">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.Period.html#C1_Win_C1Chart_TrendLine_Period">Period</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the period of the TrendLine calculation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_PlotLinesMethod" data-uid="C1.Win.C1Chart.TrendLine.PlotLinesMethod">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.PlotLinesMethod.html#C1_Win_C1Chart_TrendLine_PlotLinesMethod">PlotLinesMethod</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the method used to plot a TrendLine.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_PlotNumPoints" data-uid="C1.Win.C1Chart.TrendLine.PlotNumPoints">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.PlotNumPoints.html#C1_Win_C1Chart_TrendLine_PlotNumPoints">PlotNumPoints</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of points used to plot the TrendLine.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_PlotOverData" data-uid="C1.Win.C1Chart.TrendLine.PlotOverData">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.PlotOverData.html#C1_Win_C1Chart_TrendLine_PlotOverData">PlotOverData</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the TrendLine is plotted over or behind the data.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_RegressionOptions" data-uid="C1.Win.C1Chart.TrendLine.RegressionOptions">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.RegressionOptions.html#C1_Win_C1Chart_TrendLine_RegressionOptions">RegressionOptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the options for calculation of the regression.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_RegressionStatistics" data-uid="C1.Win.C1Chart.TrendLine.RegressionStatistics">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.RegressionStatistics.html#C1_Win_C1Chart_TrendLine_RegressionStatistics">RegressionStatistics</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the statistical information about calculated regression.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_SeriesIndex" data-uid="C1.Win.C1Chart.TrendLine.SeriesIndex">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.SeriesIndex.html#C1_Win_C1Chart_TrendLine_SeriesIndex">SeriesIndex</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the data series that is used to calculate the TrendLine.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_SeriesLabel" data-uid="C1.Win.C1Chart.TrendLine.SeriesLabel">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.SeriesLabel.html#C1_Win_C1Chart_TrendLine_SeriesLabel">SeriesLabel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the label of the data series that is used to calculate the TrendLine.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_Text" data-uid="C1.Win.C1Chart.TrendLine.Text">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.Text.html#C1_Win_C1Chart_TrendLine_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text associated with the TrendLine shown in legend.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_TrendLineType" data-uid="C1.Win.C1Chart.TrendLine.TrendLineType">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.TrendLineType.html#C1_Win_C1Chart_TrendLine_TrendLineType">TrendLineType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the type of TrendLine.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_Visible" data-uid="C1.Win.C1Chart.TrendLine.Visible">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.Visible.html#C1_Win_C1Chart_TrendLine_Visible">Visible</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the TrendLine is visible.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_GetCoefficients" data-uid="C1.Win.C1Chart.TrendLine.GetCoefficients">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.GetCoefficients.html#C1_Win_C1Chart_TrendLine_GetCoefficients">GetCoefficients()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the calculatedCalculated the coefficients of the TrendLine.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_GetY_System_Double_" data-uid="C1.Win.C1Chart.TrendLine.GetY(System.Double)">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.GetY.html#C1_Win_C1Chart_TrendLine_GetY_System_Double_">GetY(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Calculates the value of the TrendLine at the specified value of X.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_TrendLine_ToString" data-uid="C1.Win.C1Chart.TrendLine.ToString">
          <a class="xref" href="C1.Win.C1Chart.TrendLine.ToString.html#C1_Win_C1Chart_TrendLine_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
