# GrapeCity.Documents.Excel.ICalculatedFields

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Excel_ICalculatedFields" data-uid="GrapeCity.Documents.Excel.ICalculatedFields" class="text-break">ICalculatedFields Interface
</h1>
  <div class="markdown level0 summary"><p>A collection of <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.html">IPivotField</a> objects that represents all the calculated fields in the specified PivotTable report.</p>
</div>
  <div class="markdown level0 conceptual"></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_ICalculatedFields_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface ICalculatedFields : IEnumerable&lt;IPivotField&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface ICalculatedFields
    Inherits IEnumerable(Of IPivotField), IEnumerable</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_ICalculatedFields_Count" data-uid="GrapeCity.Documents.Excel.ICalculatedFields.Count">
          <a class="xref" href="GrapeCity.Documents.Excel.ICalculatedFields.Count.html#GrapeCity_Documents_Excel_ICalculatedFields_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the number of calculated fields.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_ICalculatedFields_Item_System_Int32_" data-uid="GrapeCity.Documents.Excel.ICalculatedFields.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Excel.ICalculatedFields.Item.html#GrapeCity_Documents_Excel_ICalculatedFields_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a single object from a collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_ICalculatedFields_Item_System_String_" data-uid="GrapeCity.Documents.Excel.ICalculatedFields.Item(System.String)">
          <a class="xref" href="GrapeCity.Documents.Excel.ICalculatedFields.Item.html#GrapeCity_Documents_Excel_ICalculatedFields_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a single object from a collection.</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_ICalculatedFields_Add_System_String_System_String_" data-uid="GrapeCity.Documents.Excel.ICalculatedFields.Add(System.String,System.String)">
          <a class="xref" href="GrapeCity.Documents.Excel.ICalculatedFields.Add.html#GrapeCity_Documents_Excel_ICalculatedFields_Add_System_String_System_String_">Add(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new calculated field. Returns a <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.html">IPivotField</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_ICalculatedFields_Remove_System_String_" data-uid="GrapeCity.Documents.Excel.ICalculatedFields.Remove(System.String)">
          <a class="xref" href="GrapeCity.Documents.Excel.ICalculatedFields.Remove.html#GrapeCity_Documents_Excel_ICalculatedFields_Remove_System_String_">Remove(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Remove the calculated fields by name.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
