# GrapeCity.Documents.Excel.IPivotTable.RepeatAllLabels

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_IPivotTable_RepeatAllLabels_" data-uid="GrapeCity.Documents.Excel.IPivotTable.RepeatAllLabels*">RepeatAllLabels Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_IPivotTable_RepeatAllLabels_" data-uid="GrapeCity.Documents.Excel.IPivotTable.RepeatAllLabels*"></a>
<h4 id="GrapeCity_Documents_Excel_IPivotTable_RepeatAllLabels_GrapeCity_Documents_Excel_PivotFieldRepeatLabels_" data-uid="GrapeCity.Documents.Excel.IPivotTable.RepeatAllLabels(GrapeCity.Documents.Excel.PivotFieldRepeatLabels)">RepeatAllLabels(PivotFieldRepeatLabels)</h4>
<div class="markdown level1 summary"><p>Sets whether to repeat item labels for all pivot fields in this pivot table.</p>
<p>This setting is applied to all existing pivot fields in the pivot table.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void RepeatAllLabels(PivotFieldRepeatLabels repeat)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub RepeatAllLabels(repeat As PivotFieldRepeatLabels)</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.Documents.Excel.PivotFieldRepeatLabels.html">PivotFieldRepeatLabels</a></td>
      <td><span class="parametername">repeat</span></td>
      <td><p>Specifies whether to repeat item labels for all pivot fields in the pivot table.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Documents_Excel_IPivotTable_RepeatAllLabels_GrapeCity_Documents_Excel_PivotFieldRepeatLabels__examples">Examples</h5>
<pre><code class="lang-csharp">worksheet.Range["A1:C5"].Value = new object[,] {
    {"Category", "Product", "Amount"},
    {"Beverages", "Tea", 100},
    {"Beverages", "Coffee", 200},
    {"Snacks", "Chips", 150},
    {"Snacks", "Nuts", 120}
};
IPivotCache pivotCache = workbook.PivotCaches.Create(worksheet.Range["A1:C5"]);
IPivotTable pivotTable = worksheet.PivotTables.Add(pivotCache, worksheet.Range["E1"], "SalesPivot");
pivotTable.PivotFields["Category"].Orientation = PivotFieldOrientation.RowField;
pivotTable.PivotFields["Product"].Orientation = PivotFieldOrientation.RowField;
pivotTable.RepeatAllLabels(PivotFieldRepeatLabels.RepeatLabels);</code></pre>

</div>
