# GrapeCity.Documents.Excel.CustomFunction

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Excel_CustomFunction" data-uid="GrapeCity.Documents.Excel.CustomFunction" class="text-break">CustomFunction Class
</h1>
  <div class="markdown level0 summary"><p>Represents the base type for custom function.</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">CustomFunction</span></div>
      <div class="level2"><a class="xref" href="GrapeCity.Documents.Excel.AsyncCustomFunction.html">AsyncCustomFunction</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Excel.html">GrapeCity.Documents.Excel</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Excel.dll</h6>
  <h5 id="GrapeCity_Documents_Excel_CustomFunction_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class CustomFunction</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class CustomFunction</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="GrapeCity_Documents_Excel_CustomFunction__ctor_System_String_GrapeCity_Documents_Excel_FunctionValueType_" data-uid="GrapeCity.Documents.Excel.CustomFunction.#ctor(System.String,GrapeCity.Documents.Excel.FunctionValueType)">
          <a class="xref" href="GrapeCity.Documents.Excel.CustomFunction.-ctor.html#GrapeCity_Documents_Excel_CustomFunction__ctor_System_String_GrapeCity_Documents_Excel_FunctionValueType_">CustomFunction(string, FunctionValueType)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes an instance of a custom function.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_CustomFunction__ctor_System_String_GrapeCity_Documents_Excel_FunctionValueType_GrapeCity_Documents_Excel_Parameter___" data-uid="GrapeCity.Documents.Excel.CustomFunction.#ctor(System.String,GrapeCity.Documents.Excel.FunctionValueType,GrapeCity.Documents.Excel.Parameter[])">
          <a class="xref" href="GrapeCity.Documents.Excel.CustomFunction.-ctor.html#GrapeCity_Documents_Excel_CustomFunction__ctor_System_String_GrapeCity_Documents_Excel_FunctionValueType_GrapeCity_Documents_Excel_Parameter___">CustomFunction(string, FunctionValueType, Parameter[])</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes an instance of a custom function.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_CustomFunction__ctor_System_String_System_String_GrapeCity_Documents_Excel_FunctionValueType_GrapeCity_Documents_Excel_Parameter___" data-uid="GrapeCity.Documents.Excel.CustomFunction.#ctor(System.String,System.String,GrapeCity.Documents.Excel.FunctionValueType,GrapeCity.Documents.Excel.Parameter[])">
          <a class="xref" href="GrapeCity.Documents.Excel.CustomFunction.-ctor.html#GrapeCity_Documents_Excel_CustomFunction__ctor_System_String_System_String_GrapeCity_Documents_Excel_FunctionValueType_GrapeCity_Documents_Excel_Parameter___">CustomFunction(string, string, FunctionValueType, Parameter[])</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes an instance of a custom function.</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="GrapeCity_Documents_Excel_CustomFunction_AcceptErrors" data-uid="GrapeCity.Documents.Excel.CustomFunction.AcceptErrors">
          <a class="xref" href="GrapeCity.Documents.Excel.CustomFunction.AcceptErrors.html#GrapeCity_Documents_Excel_CustomFunction_AcceptErrors">AcceptErrors</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the function can accept error values as arguments.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_CustomFunction_IsVolatile" data-uid="GrapeCity.Documents.Excel.CustomFunction.IsVolatile">
          <a class="xref" href="GrapeCity.Documents.Excel.CustomFunction.IsVolatile.html#GrapeCity_Documents_Excel_CustomFunction_IsVolatile">IsVolatile</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to allow custom formula use cache.</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_CustomFunction_Evaluate_System_Object___GrapeCity_Documents_Excel_ICalcContext_" data-uid="GrapeCity.Documents.Excel.CustomFunction.Evaluate(System.Object[],GrapeCity.Documents.Excel.ICalcContext)">
          <a class="xref" href="GrapeCity.Documents.Excel.CustomFunction.Evaluate.html#GrapeCity_Documents_Excel_CustomFunction_Evaluate_System_Object___GrapeCity_Documents_Excel_ICalcContext_">Evaluate(object[], ICalcContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Calculate the function.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
