# C1.Win.C1Chart.YFunction

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Chart_YFunction" data-uid="C1.Win.C1Chart.YFunction" class="text-break">YFunction Class
</h1>
  <div class="markdown level0 summary"><p>The Yfunction class  is used to describe simple functions defined  explicitly by equations of the form y(x) = f(x).</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"><a class="xref" href="C1.Win.C1Chart.FunctionBase.html">FunctionBase</a></div>
    <div class="level2"><span class="xref">YFunction</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <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_YFunction_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class YFunction : FunctionBase, IDisposable, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class YFunction
    Inherits FunctionBase
    Implements IDisposable, 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_YFunction__ctor" data-uid="C1.Win.C1Chart.YFunction.#ctor">
          <a class="xref" href="C1.Win.C1Chart.YFunction.-ctor.html#C1_Win_C1Chart_YFunction__ctor">YFunction()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.C1Chart.YFunction.html">YFunction</a> class.
This constructor is equivalent to YFunction(true).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_YFunction__ctor_System_Boolean_" data-uid="C1.Win.C1Chart.YFunction.#ctor(System.Boolean)">
          <a class="xref" href="C1.Win.C1Chart.YFunction.-ctor.html#C1_Win_C1Chart_YFunction__ctor_System_Boolean_">YFunction(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.C1Chart.YFunction.html">YFunction</a> class.</p>
<param name="Disposable">
Specifies whether the YFunction object should be created in a way that allows the
compiled functions (in-memory assemblies) be unloaded.

<remarks>
When the Disposable parameter is true, an in-memory assembly is created
another AppDomain which is unloaded from the application when the YFunction
object goes out of scope.  If the Disposable parameter is false, then the in-memory
created assemblies cannot be unloaded until the application is terminated. Note
that an AppDomain is used only if the current permission set allows.  Web applications
always create function assemblies in the current AppDomain.
</remarks>
</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_YFunction_AutoMax" data-uid="C1.Win.C1Chart.YFunction.AutoMax">
          <a class="xref" href="C1.Win.C1Chart.YFunction.AutoMax.html#C1_Win_C1Chart_YFunction_AutoMax">AutoMax</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the maximum X value is calculated automatically.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_YFunction_AutoMin" data-uid="C1.Win.C1Chart.YFunction.AutoMin">
          <a class="xref" href="C1.Win.C1Chart.YFunction.AutoMin.html#C1_Win_C1Chart_YFunction_AutoMin">AutoMin</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the minimum X value is calculated automatically.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_YFunction_CodeText" data-uid="C1.Win.C1Chart.YFunction.CodeText">
          <a class="xref" href="C1.Win.C1Chart.YFunction.CodeText.html#C1_Win_C1Chart_YFunction_CodeText">CodeText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the function code.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_YFunction_CustomFunction" data-uid="C1.Win.C1Chart.YFunction.CustomFunction">
          <a class="xref" href="C1.Win.C1Chart.YFunction.CustomFunction.html#C1_Win_C1Chart_YFunction_CustomFunction">CustomFunction</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a user-defined custom function object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_YFunction_MaxX" data-uid="C1.Win.C1Chart.YFunction.MaxX">
          <a class="xref" href="C1.Win.C1Chart.YFunction.MaxX.html#C1_Win_C1Chart_YFunction_MaxX">MaxX</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum X value of the plotted function.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_YFunction_MinX" data-uid="C1.Win.C1Chart.YFunction.MinX">
          <a class="xref" href="C1.Win.C1Chart.YFunction.MinX.html#C1_Win_C1Chart_YFunction_MinX">MinX</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the minimum X value of the plotted function.</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_YFunction_GetPoints_System_Boolean_" data-uid="C1.Win.C1Chart.YFunction.GetPoints(System.Boolean)">
          <a class="xref" href="C1.Win.C1Chart.YFunction.GetPoints.html#C1_Win_C1Chart_YFunction_GetPoints_System_Boolean_">GetPoints(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the calulated Y points of chart.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_YFunction_GetY_System_Double_" data-uid="C1.Win.C1Chart.YFunction.GetY(System.Double)">
          <a class="xref" href="C1.Win.C1Chart.YFunction.GetY.html#C1_Win_C1Chart_YFunction_GetY_System_Double_">GetY(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Calculates the value of the function at specified X value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_YFunction_GetYValues_System_Double___" data-uid="C1.Win.C1Chart.YFunction.GetYValues(System.Double[])">
          <a class="xref" href="C1.Win.C1Chart.YFunction.GetYValues.html#C1_Win_C1Chart_YFunction_GetYValues_System_Double___">GetYValues(double[])</a>
        </td>
        <td class="markdown level1 summary"><p>Calculates the values of the function at specified X values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Chart_YFunction_Recompile" data-uid="C1.Win.C1Chart.YFunction.Recompile">
          <a class="xref" href="C1.Win.C1Chart.YFunction.Recompile.html#C1_Win_C1Chart_YFunction_Recompile">Recompile()</a>
        </td>
        <td class="markdown level1 summary"><p>The code will be compiled as formula, a method or as full compile unit.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</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_YFunction_CalculateY" data-uid="C1.Win.C1Chart.YFunction.CalculateY">
          <a class="xref" href="C1.Win.C1Chart.YFunction.CalculateY.html">CalculateY</a>
        </td>
        <td class="markdown level1 summary"><p>Fires whenever the function value is calculated.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
