# C1.WPF.FlexGrid.C1FlexGrid.GetAggregate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_FlexGrid_C1FlexGrid_GetAggregate_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.GetAggregate*">GetAggregate Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_FlexGrid_C1FlexGrid_GetAggregate_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.GetAggregate*"></a>
<h4 id="C1_WPF_FlexGrid_C1FlexGrid_GetAggregate_C1_WPF_FlexGrid_Aggregate_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.C1FlexGrid.GetAggregate(C1.WPF.FlexGrid.Aggregate,C1.WPF.FlexGrid.CellRange)">GetAggregate(Aggregate, CellRange)</h4>
<div class="markdown level1 summary"><p>Calculates aggregate statistics for a cell range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual decimal GetAggregate(Aggregate aggregate, CellRange rng)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Function GetAggregate(aggregate As Aggregate, rng As CellRange) As Decimal</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.WPF.FlexGrid.Aggregate.html">Aggregate</a></td>
      <td><span class="parametername">aggregate</span></td>
      <td><p><a class="xref" href="C1.WPF.FlexGrid.Aggregate.html">Aggregate</a> value that specifies the type of aggregate to calculate.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a></td>
      <td><span class="parametername">rng</span></td>
      <td><p><a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a> object that contains the values to be aggregated.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.decimal">decimal</a></td>
      <td><p>A decimal value that represents the aggregate.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_FlexGrid_C1FlexGrid_GetAggregate_C1_WPF_FlexGrid_Aggregate_C1_WPF_FlexGrid_CellRange__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Cells in invisible rows and columns are included in the aggregate calculations;
cells in group rows are not.</p>
</div>
</div>
