# GrapeCity.Documents.Excel.IPivotFilter.Name

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_IPivotFilter_Name_" data-uid="GrapeCity.Documents.Excel.IPivotFilter.Name*">Name Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_IPivotFilter_Name_" data-uid="GrapeCity.Documents.Excel.IPivotFilter.Name*"></a>
<h4 id="GrapeCity_Documents_Excel_IPivotFilter_Name" data-uid="GrapeCity.Documents.Excel.IPivotFilter.Name">Name</h4>
<div class="markdown level1 summary"><p>Gets the name of the pivot filter.</p>
<p>
Use this property to retrieve the filter name for a filter created through
<a class="xref" href="GrapeCity.Documents.Excel.IPivotField.PivotFilters.html#GrapeCity_Documents_Excel_IPivotField_PivotFilters">PivotFilters</a>.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">string Name { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">ReadOnly Property Name As String</code></pre>
</div>
<h5 id="GrapeCity_Documents_Excel_IPivotFilter_Name_examples">Examples</h5>
<pre><code class="lang-csharp">worksheet.Range["A1:B3"].Value = new object[,] {
    {"Product", "Amount"},
    {"Mi Band", 100},
    {"Canon EOS", 200}
};
IPivotCache pivotCache = workbook.PivotCaches.Create(worksheet.Range["A1:B3"]);
IPivotTable pivotTable = worksheet.PivotTables.Add(pivotCache, worksheet.Range["D1"], "SalesPivot");
IPivotField productField = pivotTable.PivotFields["Product"];
productField.Orientation = PivotFieldOrientation.RowField;
pivotTable.PivotFields["Amount"].Orientation = PivotFieldOrientation.DataField;
IPivotFilter pivotFilter = productField.PivotFilters.Add(PivotFilterType.CaptionContains, "Mi");
string filterName = pivotFilter.Name;</code></pre>

</div>
