# C1.Win.C1Chart.ICustomTrendLine.Calculate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Chart_ICustomTrendLine_Calculate_" data-uid="C1.Win.C1Chart.ICustomTrendLine.Calculate*">Calculate Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Chart_ICustomTrendLine_Calculate_" data-uid="C1.Win.C1Chart.ICustomTrendLine.Calculate*"></a>
<h4 id="C1_Win_C1Chart_ICustomTrendLine_Calculate_C1_Win_C1Chart_TrendLine_System_Double___System_Double___" data-uid="C1.Win.C1Chart.ICustomTrendLine.Calculate(C1.Win.C1Chart.TrendLine,System.Double[],System.Double[])">Calculate(TrendLine, double[], double[])</h4>
<div class="markdown level1 summary"><p>Calculates the points of the TrendLine to be plotted, the X values and Y values must be returned by
<a class="xref" href="C1.Win.C1Chart.ICustomTrendLine.GetXValues.html#C1_Win_C1Chart_ICustomTrendLine_GetXValues">GetXValues()</a> and
<a class="xref" href="C1.Win.C1Chart.ICustomTrendLine.GetYValues.html#C1_Win_C1Chart_ICustomTrendLine_GetYValues">GetYValues()</a> methods.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Calculate(TrendLine tl, double[] x, double[] y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Calculate(tl As TrendLine, x As Double(), y As Double())</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.C1Chart.TrendLine.html">TrendLine</a></td>
      <td><span class="parametername">tl</span></td>
      <td><p>TrendLine.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</td>
      <td><span class="parametername">x</span></td>
      <td><p>X value,</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>[]</td>
      <td><span class="parametername">y</span></td>
      <td><p>Y value.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Chart_ICustomTrendLine_Calculate_C1_Win_C1Chart_TrendLine_System_Double___System_Double____seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.Win.C1Chart.ICustomTrendLine.html">ICustomTrendLine</a></div>
</div>
</div>
