# GrapeCity.Spreadsheet.Charts.ITrendline

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_Charts_ITrendline" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline" class="text-break">ITrendline Interface
</h1>
  <div class="markdown level0 summary"><p>Represents a trendline in a chart.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Spreadsheet.Charts.html">GrapeCity.Spreadsheet.Charts</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Spreadsheet_Charts_ITrendline_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface ITrendline</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface ITrendline</code></pre>
  </div>
  <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="GrapeCity_Spreadsheet_Charts_ITrendline_Backward" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline.Backward">
          <a class="xref" href="GrapeCity.Spreadsheet.Charts.ITrendline.Backward.html#GrapeCity_Spreadsheet_Charts_ITrendline_Backward">Backward</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of periods (or units on a scatter chart) that the trendline extends backward.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ITrendline_Border" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline.Border">
          <a class="xref" href="GrapeCity.Spreadsheet.Charts.ITrendline.Border.html#GrapeCity_Spreadsheet_Charts_ITrendline_Border">Border</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an <a class="xref" href="GrapeCity.Spreadsheet.IBorder.html">IBorder</a> object that represents the border of the object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ITrendline_DataLabel" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline.DataLabel">
          <a class="xref" href="GrapeCity.Spreadsheet.Charts.ITrendline.DataLabel.html#GrapeCity_Spreadsheet_Charts_ITrendline_DataLabel">DataLabel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an <a class="xref" href="GrapeCity.Spreadsheet.Charts.IDataLabel.html">IDataLabel</a> object that represents the data label associated with the trendline.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ITrendline_DisplayEquation" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline.DisplayEquation">
          <a class="xref" href="GrapeCity.Spreadsheet.Charts.ITrendline.DisplayEquation.html#GrapeCity_Spreadsheet_Charts_ITrendline_DisplayEquation">DisplayEquation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the equation for the trendline is displayed on the chart (in the same data label as the R-squared value).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ITrendline_DisplayRSquared" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline.DisplayRSquared">
          <a class="xref" href="GrapeCity.Spreadsheet.Charts.ITrendline.DisplayRSquared.html#GrapeCity_Spreadsheet_Charts_ITrendline_DisplayRSquared">DisplayRSquared</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the R-squared value of the trendline is displayed on the chart (in the same data label as the equation).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ITrendline_Format" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline.Format">
          <a class="xref" href="GrapeCity.Spreadsheet.Charts.ITrendline.Format.html#GrapeCity_Spreadsheet_Charts_ITrendline_Format">Format</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Spreadsheet.Charts.IChartFormat.html">IChartFormat</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ITrendline_Forward" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline.Forward">
          <a class="xref" href="GrapeCity.Spreadsheet.Charts.ITrendline.Forward.html#GrapeCity_Spreadsheet_Charts_ITrendline_Forward">Forward</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of periods (or units on a scatter chart) that the trendline extends forward.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ITrendline_Index" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline.Index">
          <a class="xref" href="GrapeCity.Spreadsheet.Charts.ITrendline.Index.html#GrapeCity_Spreadsheet_Charts_ITrendline_Index">Index</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that represents the index number of the object within the collection of similar objects.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ITrendline_Intercept" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline.Intercept">
          <a class="xref" href="GrapeCity.Spreadsheet.Charts.ITrendline.Intercept.html#GrapeCity_Spreadsheet_Charts_ITrendline_Intercept">Intercept</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the point where the trendline crosses the value axis.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ITrendline_Order" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline.Order">
          <a class="xref" href="GrapeCity.Spreadsheet.Charts.ITrendline.Order.html#GrapeCity_Spreadsheet_Charts_ITrendline_Order">Order</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that represents the trendline order (an integer greater than 1) when the trendline type is <a class="xref" href="GrapeCity.Spreadsheet.Charts.TrendlineType.html#GrapeCity_Spreadsheet_Charts_TrendlineType_Polynomial">Polynomial</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ITrendline_Period" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline.Period">
          <a class="xref" href="GrapeCity.Spreadsheet.Charts.ITrendline.Period.html#GrapeCity_Spreadsheet_Charts_ITrendline_Period">Period</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the period for the moving-average trendline. Can be a value from 2 through 255.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ITrendline_Type" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline.Type">
          <a class="xref" href="GrapeCity.Spreadsheet.Charts.ITrendline.Type.html#GrapeCity_Spreadsheet_Charts_ITrendline_Type">Type</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="GrapeCity.Spreadsheet.Charts.TrendlineType.html">TrendlineType</a> value that represents the trendline type.</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="GrapeCity_Spreadsheet_Charts_ITrendline_ClearFormats" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline.ClearFormats">
          <a class="xref" href="GrapeCity.Spreadsheet.Charts.ITrendline.ClearFormats.html#GrapeCity_Spreadsheet_Charts_ITrendline_ClearFormats">ClearFormats()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the formatting of the object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Charts_ITrendline_Delete" data-uid="GrapeCity.Spreadsheet.Charts.ITrendline.Delete">
          <a class="xref" href="GrapeCity.Spreadsheet.Charts.ITrendline.Delete.html#GrapeCity_Spreadsheet_Charts_ITrendline_Delete">Delete()</a>
        </td>
        <td class="markdown level1 summary"><p>Deletes the object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
