# GrapeCity.Spreadsheet.Commands.PivotTables.PivotTableCommand.ModifyPivotStyle

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Commands_PivotTables_PivotTableCommand_ModifyPivotStyle_" data-uid="GrapeCity.Spreadsheet.Commands.PivotTables.PivotTableCommand.ModifyPivotStyle*">ModifyPivotStyle Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Commands_PivotTables_PivotTableCommand_ModifyPivotStyle_" data-uid="GrapeCity.Spreadsheet.Commands.PivotTables.PivotTableCommand.ModifyPivotStyle*"></a>
<h4 id="GrapeCity_Spreadsheet_Commands_PivotTables_PivotTableCommand_ModifyPivotStyle_GrapeCity_Spreadsheet_PivotTables_IPivotTable_System_Collections_Generic_Dictionary_GrapeCity_Spreadsheet_TableStyleElementType_System_Tuple_GrapeCity_Spreadsheet_StyleFormat_System_Int32___System_String_System_Boolean_System_String_System_Boolean_" data-uid="GrapeCity.Spreadsheet.Commands.PivotTables.PivotTableCommand.ModifyPivotStyle(GrapeCity.Spreadsheet.PivotTables.IPivotTable,System.Collections.Generic.Dictionary{GrapeCity.Spreadsheet.TableStyleElementType,System.Tuple{GrapeCity.Spreadsheet.StyleFormat,System.Int32}},System.String,System.Boolean,System.String,System.Boolean)">ModifyPivotStyle(IPivotTable, Dictionary&lt;TableStyleElementType, Tuple&lt;StyleFormat, int&gt;&gt;, string, bool, string, bool)</h4>
<div class="markdown level1 summary"><p>Modifies the pivot style of specified <a class="xref" href="GrapeCity.Spreadsheet.PivotTables.IPivotTable.html">IPivotTable</a> object.</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 ModifyPivotStyle(IPivotTable pivotTable, Dictionary&lt;TableStyleElementType, Tuple&lt;StyleFormat, int&gt;&gt; tableStyleElements, string styleName, bool isDefaultTableStyle = false, string newStyleName = null, bool isDuplicated = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function ModifyPivotStyle(pivotTable As IPivotTable, tableStyleElements As Dictionary(Of TableStyleElementType, Tuple(Of StyleFormat, Integer)), styleName As String, Optional isDefaultTableStyle As Boolean = False, Optional newStyleName As String = Nothing, Optional isDuplicated As Boolean = False) 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></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2">Dictionary</a>&lt;<a class="xref" href="GrapeCity.Spreadsheet.TableStyleElementType.html">TableStyleElementType</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.tuple-2">Tuple</a>&lt;<a class="xref" href="GrapeCity.Spreadsheet.StyleFormat.html">StyleFormat</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>&gt;&gt;</td>
      <td><span class="parametername">tableStyleElements</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">styleName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isDefaultTableStyle</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">newStyleName</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isDuplicated</span></td>
      <td></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>
