# GrapeCity.Spreadsheet.Commands.PivotTables.PivotTableCommand.UpdateShowValuesAsSettings

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Commands_PivotTables_PivotTableCommand_UpdateShowValuesAsSettings_" data-uid="GrapeCity.Spreadsheet.Commands.PivotTables.PivotTableCommand.UpdateShowValuesAsSettings*">UpdateShowValuesAsSettings Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Commands_PivotTables_PivotTableCommand_UpdateShowValuesAsSettings_" data-uid="GrapeCity.Spreadsheet.Commands.PivotTables.PivotTableCommand.UpdateShowValuesAsSettings*"></a>
<h4 id="GrapeCity_Spreadsheet_Commands_PivotTables_PivotTableCommand_UpdateShowValuesAsSettings_GrapeCity_Spreadsheet_PivotTables_IPivotTable_GrapeCity_Spreadsheet_PivotTables_IPivotField_GrapeCity_Spreadsheet_PivotTables_PivotFieldCalculation_GrapeCity_Spreadsheet_NumberFormat_System_Nullable_System_Int32__System_Nullable_System_Int32__" data-uid="GrapeCity.Spreadsheet.Commands.PivotTables.PivotTableCommand.UpdateShowValuesAsSettings(GrapeCity.Spreadsheet.PivotTables.IPivotTable,GrapeCity.Spreadsheet.PivotTables.IPivotField,GrapeCity.Spreadsheet.PivotTables.PivotFieldCalculation,GrapeCity.Spreadsheet.NumberFormat,System.Nullable{System.Int32},System.Nullable{System.Int32})">UpdateShowValuesAsSettings(IPivotTable, IPivotField, PivotFieldCalculation, NumberFormat, int?, int?)</h4>
<div class="markdown level1 summary"><p>Initializes a new command to modify <span class="xref">GrapeCity.Spreadsheet.Commands.PivotTables.PivotTableCommand.PivotTable</span> show values as settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Command UpdateShowValuesAsSettings(IPivotTable pivotTable, IPivotField pivotField, PivotFieldCalculation calculation, NumberFormat numberFormat, int? baseField = null, int? baseItem = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function UpdateShowValuesAsSettings(pivotTable As IPivotTable, pivotField As IPivotField, calculation As PivotFieldCalculation, numberFormat As NumberFormat, Optional baseField As Integer? = Nothing, Optional baseItem As Integer? = Nothing) As Command</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="GrapeCity.Spreadsheet.PivotTables.IPivotTable.html">IPivotTable</a></td>
      <td><span class="parametername">pivotTable</span></td>
      <td><p>The PivotTable report</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.PivotTables.IPivotField.html">IPivotField</a></td>
      <td><span class="parametername">pivotField</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.PivotTables.PivotFieldCalculation.html">PivotFieldCalculation</a></td>
      <td><span class="parametername">calculation</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.PivotTables.PivotFieldCalculation.html">PivotFieldCalculation</a> value that represents the type of calculation performed by the specified field.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.NumberFormat.html">NumberFormat</a></td>
      <td><span class="parametername">numberFormat</span></td>
      <td><p>The number format which indicate how to format and render the numeric value of a cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</td>
      <td><span class="parametername">baseField</span></td>
      <td><p>The base field for a custom calculation</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?</td>
      <td><span class="parametername">baseItem</span></td>
      <td><p>The item in the base field for a custom calculation.</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="GrapeCity.Spreadsheet.Commands.Command.html">Command</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
