# GrapeCity.Documents.Excel.IPivotField

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Excel_IPivotField" data-uid="GrapeCity.Documents.Excel.IPivotField" class="text-break">IPivotField Interface
</h1>
  <div class="markdown level0 summary"><p>Represents a field in a PivotTable report. The PivotField object is a member of the PivotFields collection. The PivotFields
collection contains all the fields in a PivotTable report, including hidden fields.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Excel.html">GrapeCity.Documents.Excel</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Excel.dll</h6>
  <h5 id="GrapeCity_Documents_Excel_IPivotField_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IPivotField</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface IPivotField</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_AllItemsVisible" data-uid="GrapeCity.Documents.Excel.IPivotField.AllItemsVisible">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.AllItemsVisible.html#GrapeCity_Documents_Excel_IPivotField_AllItemsVisible">AllItemsVisible</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves a value that indicates whether any manual filtering is applied to Pivotfield.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_AutoSortField" data-uid="GrapeCity.Documents.Excel.IPivotField.AutoSortField">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.AutoSortField.html#GrapeCity_Documents_Excel_IPivotField_AutoSortField">AutoSortField</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the name of the data field used to sort the specified PivotTable field automatically.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_AutoSortOrder" data-uid="GrapeCity.Documents.Excel.IPivotField.AutoSortOrder">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.AutoSortOrder.html#GrapeCity_Documents_Excel_IPivotField_AutoSortOrder">AutoSortOrder</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the order used to sort the specified PivotTable field automatically.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_BaseField" data-uid="GrapeCity.Documents.Excel.IPivotField.BaseField">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.BaseField.html#GrapeCity_Documents_Excel_IPivotField_BaseField">BaseField</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the base field for a custom calculation. This property is valid only for data fields.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_BaseItem" data-uid="GrapeCity.Documents.Excel.IPivotField.BaseItem">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.BaseItem.html#GrapeCity_Documents_Excel_IPivotField_BaseItem">BaseItem</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the item in the base field for a custom calculation. Valid only for data fields.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_Calculation" data-uid="GrapeCity.Documents.Excel.IPivotField.Calculation">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.Calculation.html#GrapeCity_Documents_Excel_IPivotField_Calculation">Calculation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="GrapeCity.Documents.Excel.PivotFieldCalculation.html">PivotFieldCalculation</a> value that represents the type of calculation performed by the specified field.
This property is valid only for data fields.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_CurrentPage" data-uid="GrapeCity.Documents.Excel.IPivotField.CurrentPage">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.CurrentPage.html#GrapeCity_Documents_Excel_IPivotField_CurrentPage">CurrentPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the current page's index showing for the page field (valid only for page fields).
The valid value is based on zero. &quot;-1&quot; indicates &quot;All&quot; or &quot;Multiple Items&quot;.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_DragToColumn" data-uid="GrapeCity.Documents.Excel.IPivotField.DragToColumn">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.DragToColumn.html#GrapeCity_Documents_Excel_IPivotField_DragToColumn">DragToColumn</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the specified field can be dragged to the column position. The default value is True.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_DragToData" data-uid="GrapeCity.Documents.Excel.IPivotField.DragToData">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.DragToData.html#GrapeCity_Documents_Excel_IPivotField_DragToData">DragToData</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the specified field can be dragged to the data position. The default value is True.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_DragToHide" data-uid="GrapeCity.Documents.Excel.IPivotField.DragToHide">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.DragToHide.html#GrapeCity_Documents_Excel_IPivotField_DragToHide">DragToHide</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the field can be hidden by being dragged off the PivotTable report. The default value is True.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_DragToPage" data-uid="GrapeCity.Documents.Excel.IPivotField.DragToPage">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.DragToPage.html#GrapeCity_Documents_Excel_IPivotField_DragToPage">DragToPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the field can be dragged to the page position. The default value is True.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_DragToRow" data-uid="GrapeCity.Documents.Excel.IPivotField.DragToRow">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.DragToRow.html#GrapeCity_Documents_Excel_IPivotField_DragToRow">DragToRow</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the field can be dragged to the row position. The default value is True.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_EnableMultiplePageItems" data-uid="GrapeCity.Documents.Excel.IPivotField.EnableMultiplePageItems">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.EnableMultiplePageItems.html#GrapeCity_Documents_Excel_IPivotField_EnableMultiplePageItems">EnableMultiplePageItems</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the field can have multiple items selected in the page field. The default value is false.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_Formula" data-uid="GrapeCity.Documents.Excel.IPivotField.Formula">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.Formula.html#GrapeCity_Documents_Excel_IPivotField_Formula">Formula</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets a String value that represents the object's formula in A1-style notation and in the language of the macro.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_Function" data-uid="GrapeCity.Documents.Excel.IPivotField.Function">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.Function.html#GrapeCity_Documents_Excel_IPivotField_Function">Function</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the function used to summarize the PivotTable field (data fields only). This object is read or write.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_LayoutBlankLine" data-uid="GrapeCity.Documents.Excel.IPivotField.LayoutBlankLine">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.LayoutBlankLine.html#GrapeCity_Documents_Excel_IPivotField_LayoutBlankLine">LayoutBlankLine</a>
        </td>
        <td class="markdown level1 summary"><p>True if a blank row is inserted after the specified row field in a PivotTable report. The default value is False.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_LayoutCompactRow" data-uid="GrapeCity.Documents.Excel.IPivotField.LayoutCompactRow">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.LayoutCompactRow.html#GrapeCity_Documents_Excel_IPivotField_LayoutCompactRow">LayoutCompactRow</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether or not a PivotField is compacted(items of multiple PivotFields are displayed in a single column) when rows are selected.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_LayoutForm" data-uid="GrapeCity.Documents.Excel.IPivotField.LayoutForm">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.LayoutForm.html#GrapeCity_Documents_Excel_IPivotField_LayoutForm">LayoutForm</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the way the specified PivotTable items appear — in table format or in outline format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_LayoutSubtotalLocation" data-uid="GrapeCity.Documents.Excel.IPivotField.LayoutSubtotalLocation">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.LayoutSubtotalLocation.html#GrapeCity_Documents_Excel_IPivotField_LayoutSubtotalLocation">LayoutSubtotalLocation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the position of the PivotTable field subtotals in relation to (either above or below) the specified field.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_Name" data-uid="GrapeCity.Documents.Excel.IPivotField.Name">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.Name.html#GrapeCity_Documents_Excel_IPivotField_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the object (read or write).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_NumberFormat" data-uid="GrapeCity.Documents.Excel.IPivotField.NumberFormat">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.NumberFormat.html#GrapeCity_Documents_Excel_IPivotField_NumberFormat">NumberFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the format code for the object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_Orientation" data-uid="GrapeCity.Documents.Excel.IPivotField.Orientation">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.Orientation.html#GrapeCity_Documents_Excel_IPivotField_Orientation">Orientation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the location of the field in the specified PivotTable report.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_PivotFilters" data-uid="GrapeCity.Documents.Excel.IPivotField.PivotFilters">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.PivotFilters.html#GrapeCity_Documents_Excel_IPivotField_PivotFilters">PivotFilters</a>
        </td>
        <td class="markdown level1 summary"><p>Get the filter set of the current <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.html">IPivotField</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_PivotItems" data-uid="GrapeCity.Documents.Excel.IPivotField.PivotItems">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.PivotItems.html#GrapeCity_Documents_Excel_IPivotField_PivotItems">PivotItems</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a collection of all the visible and hidden items in the specified field.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_Position" data-uid="GrapeCity.Documents.Excel.IPivotField.Position">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.Position.html#GrapeCity_Documents_Excel_IPivotField_Position">Position</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the position of the field (first, second, third, and so on) among all the fields in its orientation (Rows, Columns, Pages, Data).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_RepeatLabels" data-uid="GrapeCity.Documents.Excel.IPivotField.RepeatLabels">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.RepeatLabels.html#GrapeCity_Documents_Excel_IPivotField_RepeatLabels">RepeatLabels</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether item labels are repeated in the PivotTable for the specified PivotField.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_ShowAllItems" data-uid="GrapeCity.Documents.Excel.IPivotField.ShowAllItems">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.ShowAllItems.html#GrapeCity_Documents_Excel_IPivotField_ShowAllItems">ShowAllItems</a>
        </td>
        <td class="markdown level1 summary"><p>True if all items in the PivotTable report are displayed, even if they don’t contain summary data. The default value is False.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_SourceName" data-uid="GrapeCity.Documents.Excel.IPivotField.SourceName">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.SourceName.html#GrapeCity_Documents_Excel_IPivotField_SourceName">SourceName</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the specified object’s name as it appears in the original source data for the specified PivotTable report. This might be different from the
current item name if the user renamed the item after creating the PivotTable report.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_Subtotals" data-uid="GrapeCity.Documents.Excel.IPivotField.Subtotals">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.Subtotals.html#GrapeCity_Documents_Excel_IPivotField_Subtotals">Subtotals</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a combination of all the showing subtotal types in the specified PivotField.
Valid only for nondata fields.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_AutoSort_System_Nullable_GrapeCity_Documents_Excel_SortOrder__System_String_" data-uid="GrapeCity.Documents.Excel.IPivotField.AutoSort(System.Nullable{GrapeCity.Documents.Excel.SortOrder},System.String)">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.AutoSort.html#GrapeCity_Documents_Excel_IPivotField_AutoSort_System_Nullable_GrapeCity_Documents_Excel_SortOrder__System_String_">AutoSort(SortOrder?, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Establishes automatic field-sorting rules for PivotTable reports.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_CalculatedItems" data-uid="GrapeCity.Documents.Excel.IPivotField.CalculatedItems">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.CalculatedItems.html#GrapeCity_Documents_Excel_IPivotField_CalculatedItems">CalculatedItems()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.Documents.Excel.ICalculatedItems.html">ICalculatedItems</a> collection that represents all the calculated items in the specified PivotTable report.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_ClearAllFilters" data-uid="GrapeCity.Documents.Excel.IPivotField.ClearAllFilters">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.ClearAllFilters.html#GrapeCity_Documents_Excel_IPivotField_ClearAllFilters">ClearAllFilters()</a>
        </td>
        <td class="markdown level1 summary"><p>Deletes all filters currently applied to the PivotField. This includes deleting all filters from the PivotFilters
collection of the PivotField and removing any manual filtering applied to the PivotField as well. If the PivotField is in the Report
Filter area, the item selected will be set to the default item.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_ClearLabelFilter" data-uid="GrapeCity.Documents.Excel.IPivotField.ClearLabelFilter">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.ClearLabelFilter.html#GrapeCity_Documents_Excel_IPivotField_ClearLabelFilter">ClearLabelFilter()</a>
        </td>
        <td class="markdown level1 summary"><p>This method deletes all label filters or all date filters in the PivotFilters collection of the PivotField.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_ClearManualFilter" data-uid="GrapeCity.Documents.Excel.IPivotField.ClearManualFilter">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.ClearManualFilter.html#GrapeCity_Documents_Excel_IPivotField_ClearManualFilter">ClearManualFilter()</a>
        </td>
        <td class="markdown level1 summary"><p>Provides an easy way to set the Visible property to True for all items of a PivotField in PivotTables,
and to empty the HiddenItemsList and VisibleItemsList collections in OLAP PivotTables.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Excel_IPivotField_ClearValueFilter" data-uid="GrapeCity.Documents.Excel.IPivotField.ClearValueFilter">
          <a class="xref" href="GrapeCity.Documents.Excel.IPivotField.ClearValueFilter.html#GrapeCity_Documents_Excel_IPivotField_ClearValueFilter">ClearValueFilter()</a>
        </td>
        <td class="markdown level1 summary"><p>This method deletes all value filters in the PivotFilters collection of the PivotField.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
