# GrapeCity.Documents.Excel.Drawing.ITrendline

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Excel_Drawing_ITrendline" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline" class="text-break">ITrendline Interface
</h1>
  <div class="markdown level0 summary"><p>Represents a trendline in a chart. A trendline shows the trend, or direction,
of data in a series.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Excel.Drawing.html">GrapeCity.Documents.Excel.Drawing</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Excel.dll</h6>
  <h5 id="GrapeCity_Documents_Excel_Drawing_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_Documents_Excel_Drawing_ITrendline_Backward" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.Backward">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.Backward.html#GrapeCity_Documents_Excel_Drawing_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_Documents_Excel_Drawing_ITrendline_DataLabel" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.DataLabel">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.DataLabel.html#GrapeCity_Documents_Excel_Drawing_ITrendline_DataLabel">DataLabel</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.Documents.Excel.Drawing.IDataLabel.html">IDataLabel</a> object that represents the data label associated with the trendline.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_ITrendline_DisplayEquation" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.DisplayEquation">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.DisplayEquation.html#GrapeCity_Documents_Excel_Drawing_ITrendline_DisplayEquation">DisplayEquation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to display the equation for the trendline (True if the equation for the trendline is displayed on the chart, in the
same data label as the R-squared value). Setting this property to True automatically
turns on data labels.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_ITrendline_DisplayRSquared" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.DisplayRSquared">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.DisplayRSquared.html#GrapeCity_Documents_Excel_Drawing_ITrendline_DisplayRSquared">DisplayRSquared</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to display the R-squared value (True if the R-squared value of the trendline is displayed on the chart, in
the same data label as the equation). Setting this property to True automatically
turns on data labels.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_ITrendline_Format" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.Format">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.Format.html#GrapeCity_Documents_Excel_Drawing_ITrendline_Format">Format</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the format for chart elements.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_ITrendline_Forward" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.Forward">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.Forward.html#GrapeCity_Documents_Excel_Drawing_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_Documents_Excel_Drawing_ITrendline_Index" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.Index">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.Index.html#GrapeCity_Documents_Excel_Drawing_ITrendline_Index">Index</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the index number of the object within the collection of similar objects.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_ITrendline_Intercept" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.Intercept">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.Intercept.html#GrapeCity_Documents_Excel_Drawing_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_Documents_Excel_Drawing_ITrendline_Name" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.Name">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.Name.html#GrapeCity_Documents_Excel_Drawing_ITrendline_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets a String value representing the name of the object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_ITrendline_NameIsAuto" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.NameIsAuto">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.NameIsAuto.html#GrapeCity_Documents_Excel_Drawing_ITrendline_NameIsAuto">NameIsAuto</a>
        </td>
        <td class="markdown level1 summary"><p>Get or set if the trendline's name is automatically determined.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_ITrendline_Order" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.Order">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.Order.html#GrapeCity_Documents_Excel_Drawing_ITrendline_Order">Order</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the trendline order (an integer is greater than or equal to 2 and less than or equal to 6)
when the trendline type is Polynomial.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_ITrendline_Parent" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.Parent">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.Parent.html#GrapeCity_Documents_Excel_Drawing_ITrendline_Parent">Parent</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the parent object for the specified object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_ITrendline_Period" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.Period">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.Period.html#GrapeCity_Documents_Excel_Drawing_ITrendline_Period">Period</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the period for the moving-average trendline.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_ITrendline_Type" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.Type">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.Type.html#GrapeCity_Documents_Excel_Drawing_ITrendline_Type">Type</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets 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_Documents_Excel_Drawing_ITrendline_ClearFormats" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.ClearFormats">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.ClearFormats.html#GrapeCity_Documents_Excel_Drawing_ITrendline_ClearFormats">ClearFormats()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the formatting of the object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_Drawing_ITrendline_Delete" data-uid="GrapeCity.Documents.Excel.Drawing.ITrendline.Delete">
          <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ITrendline.Delete.html#GrapeCity_Documents_Excel_Drawing_ITrendline_Delete">Delete()</a>
        </td>
        <td class="markdown level1 summary"><p>Deletes the object.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
