# IPivotTable

## Content

<div class="docapp-java-api-doc-main"><style>:not(h1, h2, h3, h4, h5, h6)>code,
:not(h1, h2, h3, h4, h5, h6)>tt {
    font-size: 14px;
    padding-top: 4px;
    margin-top: 8px;
    line-height: 1.4em;
}

.summary-table dt code {
    font-size: 14px;
    vertical-align: top;
    padding-top: 4px;
}

.tab {
    background-color: #0066FF;
    color: #ffffff;
    padding: 8px;
    width: 5em;
    font-weight: bold;
}

/*
 * Styles for page header and footer.
 */
.title {
    color: #2c4557;
    margin: 10px 0;
}

.sub-title {
    margin: 5px 0 0 0;
}

.header ul {
    margin: 0 0 15px 0;
    padding: 0;
}

.header ul li,
.footer ul li {
    list-style: none;
}

/*
 * Styles for headings.
 */
.summary h2,
.details h2,
h2,
.block-list h2 {
    padding: 0;
    margin: 15px 0;
}

.summary h3,
.details h3,
.summary .inherited-list h2 {
    background-color: var(--ds-product-color);
    color: #fff;
    border: 1px solid #d0d9e0;
    padding: 7px 5px;
}

.summary h3 a,
.details h3 a,
.summary .inherited-list h2 a {
    color: #fff !important;
}
/*
 * Styles for page layout containers.
 */
dl.notes>dt {
    font-size: 12px;
    font-weight: bold;
    margin: 10px 0 0 0;
    color: #4E4E4E;
}

dl.notes>dd {
    margin: 5px 10px 10px 0;
    font-size: 14px;
}

dl.name-value>dt {
    margin-left: 1px;
    font-size: 1.1em;
    display: inline;
    font-weight: bold;
}

dl.name-value>dd {
    margin: 0 0 0 1px;
    font-size: 1.1em;
    display: inline;
}

/*
 * Styles for lists.
 */
li.circle {
    list-style: circle;
}

ul.horizontal li {
    display: inline;
    font-size: 0.9em;
}

div.inheritance {
    margin: 0;
    padding: 0;
}

div.inheritance div.inheritance {
    margin-left: 2em;
}

ul.block-list,
ul.details-list,
ul.member-list,
ul.summary-list {
    margin: 10px 0 10px 0;
    padding: 0;
}

ul.block-list>li,
ul.details-list>li,
ul.member-list>li,
ul.summary-list>li {
    list-style: none;
    margin-bottom: 15px;
    line-height: 1.4;
}

.summary-table dl,
.summary-table dl dt,
.summary-table dl dd {
    margin-top: 0;
    margin-bottom: 1px;
}

ul.see-list,
ul.see-list-long {
    padding-left: 0;
    list-style: none;
}

ul.see-list li {
    display: inline;
}

ul.see-list li:not(:last-child):after,
ul.see-list-long li:not(:last-child):after {
    content: ", ";
    white-space: pre-wrap;
}

/*
 * Styles for tables.
 */
.summary-table,
.details-table {
    width: 100%;
    border-spacing: 0;
    border-left: 1px solid #EEE;
    border-right: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
    padding: 0;
}

.caption {
    position: relative;
    text-align: left;
    background-repeat: no-repeat;
    color: #253441;
    font-weight: bold;
    clear: none;
    overflow: hidden;
    padding: 0;
    padding-top: 10px;
    padding-left: 1px;
    margin: 0;
    white-space: pre;
}

.caption a:link,
.caption a:visited {
    color: #1f389c;
}

.caption a:hover,
.caption a:active {
    color: #FFFFFF;
}

.caption span {
    white-space: nowrap;
    padding-top: 5px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 7px;
    display: inline-block;
    background-color: var(--ds-product-color);
    color: #fff;
    border: none;
}

div.table-tabs {
    padding: 10px 0 0 1px;
    margin: 0;
}

div.table-tabs>button {
    border: none;
    cursor: pointer;
    padding: 5px 12px 7px 12px;
    font-weight: bold;
    margin-right: 3px;
}

div.table-tabs>button.active-table-tab {
    background: var(--ds-product-color);
    color: #fff;
}

div.table-tabs>button.table-tab {
    background: var(--ds-product-color);
    color: #FFFFFF;
    border-bottom: 1px solid #eee;
}

.two-column-summary {
    display: grid;
    grid-template-columns: minmax(15%, max-content) minmax(15%, auto);
}

.three-column-summary {
    display: grid;
    grid-template-columns: minmax(10%, max-content) minmax(15%, max-content) minmax(15%, auto);
}

.four-column-summary {
    display: grid;
    grid-template-columns: minmax(10%, max-content) minmax(10%, max-content) minmax(10%, max-content) minmax(10%, auto);
}

@media screen and (max-width: 600px) {
    .two-column-summary {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 800px) {
    .three-column-summary {
        display: grid;
        grid-template-columns: minmax(10%, max-content) minmax(25%, auto);
    }

    .three-column-summary .col-last {
        grid-column-end: span 2;
    }
}

@media screen and (max-width: 1000px) {
    .four-column-summary {
        display: grid;
        grid-template-columns: minmax(15%, max-content) minmax(15%, auto);
    }
}

.summary-table>div,
.details-table>div {
    text-align: left;
    padding: 8px 3px 3px 7px;
}

.col-first,
.col-second,
.col-last,
.col-constructor-name,
.col-summary-item-name {
    vertical-align: top;
    padding-right: 0;
    padding-top: 8px;
    padding-bottom: 3px;
}

.table-header {
    background: var(--ds-product-color);
    color: #fff;
    font-weight: bold;
}

.col-first,
.col-first {
    font-size: 13px;
}

.col-second,
.col-second,
.col-last,
.col-constructor-name,
.col-summary-item-name,
.col-last {
    font-size: 13px;
}

.col-first,
.col-second,
.col-constructor-name {
    vertical-align: top;
    overflow: auto;
}

.col-last {
    white-space: normal;
}

.col-first a:link,
.col-first a:visited,
.col-second a:link,
.col-second a:visited,
.col-first a:link,
.col-first a:visited,
.col-second a:link,
.col-second a:visited,
.col-constructor-name a:link,
.col-constructor-name a:visited,
.col-summary-item-name a:link,
.col-summary-item-name a:visited,
.constant-values-container a:link,
.constant-values-container a:visited,
.all-classes-container a:link,
.all-classes-container a:visited,
.all-packages-container a:link,
.all-packages-container a:visited {
    font-weight: bold;
}

.table-sub-heading-color {
    background-color: #EEEEFF;
}

.even-row-color,
.even-row-color .table-header {
    background-color: #FFFFFF;
}

.odd-row-color,
.odd-row-color .table-header {
    background-color: #EEEEEF;
}

/*
 * Styles for contents.
 */
.deprecated-content {
    margin: 0;
    padding: 10px 0;
}

div.block {
    font-size: 14px;
}

.col-last div {
    padding-top: 0;
}

.col-last a {
    padding-bottom: 3px;
}

.module-signature,
.package-signature,
.type-signature,
.member-signature {
    font-size: 14px;
    margin: 14px 0;
    white-space: pre-wrap;
}

.module-signature,
.package-signature,
.type-signature {
    margin-top: 0;
}

.member-signature .type-parameters-long,
.member-signature .parameters,
.member-signature .exceptions {
    display: inline-block;
    vertical-align: top;
    white-space: pre;
}

.member-signature .type-parameters {
    white-space: normal;
}

/*
 * Styles for formatting effect.
 */
.source-line-no {
    color: green;
    padding: 0 30px 0 0;
}

h1.hidden {
    visibility: hidden;
    overflow: hidden;
    font-size: 10px;
}

.block {
    display: block;
    margin: 0 10px 5px 0;
    color: #474747;
}

.deprecated-label,
.descfrm-type-label,
.implementation-label,
.member-name-label,
.member-name-link,
.module-label-in-package,
.module-label-in-type,
.override-specify-label,
.package-label-in-type,
.package-hierarchy-label,
.type-name-label,
.type-name-link,
.search-tag-link,
.preview-label {
    font-weight: bold;
}

.deprecation-block {
    font-size: 14px;
    border-style: solid;
    border-width: thin;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
    display: inline-block;
}

.preview-block {
    font-size: 14px;
    border-style: solid;
    border-width: thin;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
    display: inline-block;
}

/*
 * Styles for user-provided tables.
 *
 * borderless:
 *      No borders, vertical margins, styled caption.
 *      This style is provided for use with existing doc comments.
 *      In general, borderless tables should not be used for layout purposes.
 *
 * plain:
 *      Plain borders around table and cells, vertical margins, styled caption.
 *      Best for small tables or for complex tables for tables with cells that span
 *      rows and columns, when the "striped" style does not work well.
 *
 * striped:
 *      Borders around the table and vertical borders between cells, striped rows,
 *      vertical margins, styled caption.
 *      Best for tables that have a header row, and a body containing a series of simple rows.
 */

table.borderless,
table.plain,
table.striped {
    margin-top: 10px;
    margin-bottom: 10px;
}

table.borderless>caption,
table.plain>caption,
table.striped>caption {
    font-weight: bold;
    font-size: smaller;
}

table.borderless th,
table.borderless td,
table.plain th,
table.plain td,
table.striped th,
table.striped td {
    padding: 2px 5px;
}

table.borderless,
table.borderless>thead>tr>th,
table.borderless>tbody>tr>th,
table.borderless>tr>th,
table.borderless>thead>tr>td,
table.borderless>tbody>tr>td,
table.borderless>tr>td {
    border: none;
}

table.borderless>thead>tr,
table.borderless>tbody>tr,
table.borderless>tr {
    background-color: transparent;
}

table.plain {
    border-collapse: collapse;
    border: 1px solid black;
}

table.plain>thead>tr,
table.plain>tbody tr,
table.plain>tr {
    background-color: transparent;
}

table.plain>thead>tr>th,
table.plain>tbody>tr>th,
table.plain>tr>th,
table.plain>thead>tr>td,
table.plain>tbody>tr>td,
table.plain>tr>td {
    border: 1px solid black;
}

table.striped {
    border-collapse: collapse;
    border: 1px solid black;
}

table.striped>thead {
    background-color: #E3E3E3;
}

table.striped>thead>tr>th,
table.striped>thead>tr>td {
    border: 1px solid black;
}

table.striped>tbody>tr:nth-child(even) {
    background-color: #EEE
}

table.striped>tbody>tr:nth-child(odd) {
    background-color: #FFF
}

table.striped>tbody>tr>th,
table.striped>tbody>tr>td {
    border-left: 1px solid black;
    border-right: 1px solid black;
}

table.striped>tbody>tr>th {
    font-weight: normal;
}
</style><h1>Interface IPivotTable</h1>
<!-- ======== START OF CLASS DATA ======== -->

<section class="class-description" id="class-description">
<hr>
<div class="type-signature"><span class="modifiers">public interface </span><span class="element-name type-name-label">IPivotTable</span></div>
<div class="block">Represents a PivotTable report on a worksheet. <p>An  <code>IPivotTable</code> is a member of the <a href="IPivotTables.html" title="interface in com.grapecity.documents.excel"><code>IPivotTables</code></a> collection and is used to summarize and analyze data from a  <a href="IPivotCache.html" title="interface in com.grapecity.documents.excel"><code>IPivotCache</code></a> on a worksheet.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Name", "Value"},
     {"A", 100},
     {"B", 200},
     {"A", 100}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "PivotTable1");
 pivotTable.setName("SalesPivot");
 </code></pre></div>
</section>
<section class="summary">
<ul class="summary-list">
<!-- ========== METHOD SUMMARY =========== -->
<li>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div aria-orientation="horizontal" class="table-tabs" role="tablist"><button aria-controls="method-summary-table.tabpanel" aria-selected="true" class="active-table-tab" id="method-summary-table-tab0" onclick="show('method-summary-table', 'method-summary-table', 3)" onkeydown="switchTab(event)" role="tab" tabindex="0">All Methods</button><button aria-controls="method-summary-table.tabpanel" aria-selected="false" class="table-tab" id="method-summary-table-tab2" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" onkeydown="switchTab(event)" role="tab" tabindex="-1">Instance Methods</button><button aria-controls="method-summary-table.tabpanel" aria-selected="false" class="table-tab" id="method-summary-table-tab3" onclick="show('method-summary-table', 'method-summary-table-tab3', 3)" onkeydown="switchTab(event)" role="tab" tabindex="-1">Abstract Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div aria-labelledby="method-summary-table-tab0" class="summary-table three-column-summary">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IPivotField.html" title="interface in com.grapecity.documents.excel">IPivotField</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#addDataField(com.grapecity.documents.excel.IPivotField,java.lang.String,com.grapecity.documents.excel.ConsolidationFunction)">addDataField</a><wbr>(<a href="IPivotField.html" title="interface in com.grapecity.documents.excel">IPivotField</a>&nbsp;field,
 <a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;caption,
 <a href="ConsolidationFunction.html" title="enum class in com.grapecity.documents.excel">ConsolidationFunction</a>&nbsp;function)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Adds a data field to the PivotTable report.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#clearAllFilters()">clearAllFilters</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Deletes all filters currently applied to the pivot table.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#clearTable()">clearTable</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Clears the PivotTable.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getAllowMultipleFilters()">getAllowMultipleFilters</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether pivot fields in the pivot table can have multiple filters applied at the same time.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="ICalculatedFields.html" title="interface in com.grapecity.documents.excel">ICalculatedFields</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getCalculatedFields()">getCalculatedFields</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the collection of calculated fields in this PivotTable report.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IPivotFields.html" title="interface in com.grapecity.documents.excel">IPivotFields</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getColumnFields()">getColumnFields</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the collection of fields that are currently shown as column fields in the PivotTable report.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getColumnGrand()">getColumnGrand</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether the PivotTable report shows grand totals for columns.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IRange.html" title="interface in com.grapecity.documents.excel">IRange</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getColumnRange()">getColumnRange</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the range that contains the column area in the PivotTable report.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getCompactRowIndent()">getCompactRowIndent</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the indent increment for pivot items when compact row layout is enabled.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IRange.html" title="interface in com.grapecity.documents.excel">IRange</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getDataBodyRange()">getDataBodyRange</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the range that contains the data area of the PivotTable report.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IPivotFields.html" title="interface in com.grapecity.documents.excel">IPivotFields</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getDataFields()">getDataFields</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the collection of fields that are currently shown as data fields in the PivotTable report.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getDeferLayoutUpdate()">getDeferLayoutUpdate</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether layout updates for the PivotTable are deferred.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getDisplayContextTooltips()">getDisplayContextTooltips</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether tooltips are displayed for PivotTable cells.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getDisplayErrorString()">getDisplayErrorString</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether the PivotTable report displays a custom error string in cells that contain errors.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getDisplayFieldCaptions()">getDisplayFieldCaptions</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether filter buttons and pivot field captions for rows and columns are displayed in the grid.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getDisplayMemberPropertyTooltips()">getDisplayMemberPropertyTooltips</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether member properties are displayed in PivotTable tooltips.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getDisplayNullString()">getDisplayNullString</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether the PivotTable report displays a custom string in cells that contain null values.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getErrorString()">getErrorString</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the string displayed in cells that contain errors when  <a href="#getDisplayErrorString()"><code>getDisplayErrorString()</code></a> is <code>true</code>.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getGrandTotalName()">getGrandTotalName</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the text label displayed in the grand total row heading or grand total column heading of the PivotTable report.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getHasAutoFormat()">getHasAutoFormat</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets a value indicating whether the PivotTable report automatically fits column widths when it is refreshed.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="LayoutRowType.html" title="enum class in com.grapecity.documents.excel">LayoutRowType</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getLayoutRowDefault()">getLayoutRowDefault</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the default row layout type that is applied when PivotFields are added to the PivotTable for the first time.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getMergeLabels()">getMergeLabels</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether the specified PivotTable report uses merged cells for outer-row items,  column items, subtotals, and grand total labels.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getName()">getName</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the name of the PivotTable.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getNullString()">getNullString</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the string displayed in PivotTable cells that contain null values when  <a href="#getDisplayNullString()"><code>getDisplayNullString()</code></a> is <code>true</code>.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="Order.html" title="enum class in com.grapecity.documents.excel">Order</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getPageFieldOrder()">getPageFieldOrder</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the order in which page fields are added to the PivotTable report layout.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IPivotFields.html" title="interface in com.grapecity.documents.excel">IPivotFields</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getPageFields()">getPageFields</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the collection of fields that are currently displayed as page fields in the PivotTable.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getPageFieldWrapCount()">getPageFieldWrapCount</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the number of page fields displayed in each column or row of the PivotTable report.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IRange.html" title="interface in com.grapecity.documents.excel">IRange</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getPageRange()">getPageRange</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the range that contains the page area in the PivotTable report.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IPivotCache.html" title="interface in com.grapecity.documents.excel">IPivotCache</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getPivotCache()">getPivotCache</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the  <a href="IPivotCache.html" title="interface in com.grapecity.documents.excel"><code>IPivotCache</code></a> used by this PivotTable report.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IPivotAxis.html" title="interface in com.grapecity.documents.excel">IPivotAxis</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getPivotColumnAxis()">getPivotColumnAxis</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the  <a href="IPivotAxis.html" title="interface in com.grapecity.documents.excel"><code>IPivotAxis</code></a> object that represents the entire column axis of the PivotTable report.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IPivotFields.html" title="interface in com.grapecity.documents.excel">IPivotFields</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getPivotFields()">getPivotFields</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the collection of PivotTable fields in the PivotTable report.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IPivotFormulas.html" title="interface in com.grapecity.documents.excel">IPivotFormulas</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getPivotFormulas()">getPivotFormulas</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the collection of formulas for the specified PivotTable report.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IPivotAxis.html" title="interface in com.grapecity.documents.excel">IPivotAxis</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getPivotRowAxis()">getPivotRowAxis</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the  <a href="IPivotAxis.html" title="interface in com.grapecity.documents.excel"><code>IPivotAxis</code></a> object that represents the entire row axis of the PivotTable report.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IPivotFields.html" title="interface in com.grapecity.documents.excel">IPivotFields</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getRowFields()">getRowFields</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the collection of fields that are currently shown as row fields in the PivotTable report.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getRowGrand()">getRowGrand</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether the PivotTable report shows grand totals for rows.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IRange.html" title="interface in com.grapecity.documents.excel">IRange</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getRowRange()">getRowRange</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the range that includes the row area in the PivotTable report.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getShowTableStyleColumnHeaders()">getShowTableStyleColumnHeaders</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether column headers are displayed in the PivotTable.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getShowTableStyleColumnStripes()">getShowTableStyleColumnStripes</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether banded columns are displayed in the PivotTable style.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getShowTableStyleLastColumn()">getShowTableStyleLastColumn</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether the last column style is displayed in the PivotTable.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getShowTableStyleRowHeaders()">getShowTableStyleRowHeaders</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether row headers are displayed in the PivotTable style.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getShowTableStyleRowStripes()">getShowTableStyleRowStripes</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets whether banded rows are displayed in the PivotTable so that even rows are formatted differently from odd rows.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="ITableStyle.html" title="interface in com.grapecity.documents.excel">ITableStyle</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getStyle()">getStyle</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the style applied to the pivot table.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IRange.html" title="interface in com.grapecity.documents.excel">IRange</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getTableRange1()">getTableRange1</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the range that contains the entire PivotTable report, excluding page fields.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IRange.html" title="interface in com.grapecity.documents.excel">IRange</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getTableRange2()">getTableRange2</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the range that contains the entire PivotTable report, including page fields.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getTableStyle()">getTableStyle</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the style used in the body of the PivotTable report.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getTag()">getTag</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the string saved with the PivotTable report.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IPivotValueCell.html" title="interface in com.grapecity.documents.excel">IPivotValueCell</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#pivotValueCell(int,int)">pivotValueCell</a><wbr>(int&nbsp;rowline,
 int&nbsp;columnline)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Retrieves the  <a href="IPivotValueCell.html" title="interface in com.grapecity.documents.excel"><code>IPivotValueCell</code></a> at the specified row and column position in the PivotTable data area.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#refresh()">refresh</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Refreshes the PivotTable report from its source data.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#repeatAllLabels(com.grapecity.documents.excel.PivotFieldRepeatLabels)">repeatAllLabels</a><wbr>(<a href="PivotFieldRepeatLabels.html" title="enum class in com.grapecity.documents.excel">PivotFieldRepeatLabels</a>&nbsp;repeat)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether to repeat item labels for all pivot fields in this pivot table.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setAllowMultipleFilters(boolean)">setAllowMultipleFilters</a><wbr>(boolean&nbsp;allowMultipleFilters)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether pivot fields in the pivot table can have multiple filters applied at the same time.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setColumnGrand(boolean)">setColumnGrand</a><wbr>(boolean&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether the PivotTable report shows grand totals for columns.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setCompactRowIndent(int)">setCompactRowIndent</a><wbr>(int&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the indent increment for pivot items when compact row layout is enabled.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setDeferLayoutUpdate(boolean)">setDeferLayoutUpdate</a><wbr>(boolean&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether layout updates for the PivotTable are deferred.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setDisplayContextTooltips(boolean)">setDisplayContextTooltips</a><wbr>(boolean&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether tooltips are displayed for PivotTable cells.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setDisplayErrorString(boolean)">setDisplayErrorString</a><wbr>(boolean&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether the PivotTable report displays a custom error string in cells that contain errors.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setDisplayFieldCaptions(boolean)">setDisplayFieldCaptions</a><wbr>(boolean&nbsp;displayFieldCaptions)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether filter buttons and pivot field captions for rows and columns are displayed in the grid.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setDisplayMemberPropertyTooltips(boolean)">setDisplayMemberPropertyTooltips</a><wbr>(boolean&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether member properties are displayed in PivotTable tooltips.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setDisplayNullString(boolean)">setDisplayNullString</a><wbr>(boolean&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether the PivotTable report displays a custom string in cells that contain null values.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setErrorString(java.lang.String)">setErrorString</a><wbr>(<a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the string displayed in cells that contain errors when  <a href="#getDisplayErrorString()"><code>getDisplayErrorString()</code></a> is <code>true</code>.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setGrandTotalName(java.lang.String)">setGrandTotalName</a><wbr>(<a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the text label displayed in the grand total row heading or grand total column heading of the PivotTable report.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setHasAutoFormat(boolean)">setHasAutoFormat</a><wbr>(boolean&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets a value indicating whether the PivotTable report automatically fits column widths when it is refreshed.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setLayoutRowDefault(com.grapecity.documents.excel.LayoutRowType)">setLayoutRowDefault</a><wbr>(<a href="LayoutRowType.html" title="enum class in com.grapecity.documents.excel">LayoutRowType</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the default layout row type for  <a href="IPivotField.html" title="interface in com.grapecity.documents.excel"><code>IPivotField</code></a> objects when they are added to the <a href="IPivotTable.html" title="interface in com.grapecity.documents.excel"><code>IPivotTable</code></a> for the first time.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setMergeLabels(boolean)">setMergeLabels</a><wbr>(boolean&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether the specified PivotTable report uses merged cells for outer-row items,  column items, subtotals, and grand total labels.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setName(java.lang.String)">setName</a><wbr>(<a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the name of the PivotTable.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setNullString(java.lang.String)">setNullString</a><wbr>(<a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the string displayed in PivotTable cells that contain null values when  <a href="#getDisplayNullString()"><code>getDisplayNullString()</code></a> is <code>true</code>.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setPageFieldOrder(com.grapecity.documents.excel.Order)">setPageFieldOrder</a><wbr>(<a href="Order.html" title="enum class in com.grapecity.documents.excel">Order</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the order in which page fields are added to the PivotTable report layout.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setPageFieldWrapCount(int)">setPageFieldWrapCount</a><wbr>(int&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the number of page fields displayed in each column or row of the PivotTable report.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setRowAxisLayout(com.grapecity.documents.excel.LayoutRowType)">setRowAxisLayout</a><wbr>(<a href="LayoutRowType.html" title="enum class in com.grapecity.documents.excel">LayoutRowType</a>&nbsp;rowLayout)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the row axis layout for all existing PivotFields in the pivot table.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setRowGrand(boolean)">setRowGrand</a><wbr>(boolean&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether the PivotTable report shows grand totals for rows.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setShowTableStyleColumnHeaders(boolean)">setShowTableStyleColumnHeaders</a><wbr>(boolean&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether column headers are displayed in the PivotTable.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setShowTableStyleColumnStripes(boolean)">setShowTableStyleColumnStripes</a><wbr>(boolean&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether banded columns are displayed in the PivotTable style.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setShowTableStyleLastColumn(boolean)">setShowTableStyleLastColumn</a><wbr>(boolean&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether the last column style is displayed in the PivotTable.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setShowTableStyleRowHeaders(boolean)">setShowTableStyleRowHeaders</a><wbr>(boolean&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether row headers are displayed in the PivotTable style.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setShowTableStyleRowStripes(boolean)">setShowTableStyleRowStripes</a><wbr>(boolean&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether banded rows are displayed in the PivotTable so that even rows are formatted differently from odd rows.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setStyle(com.grapecity.documents.excel.ITableStyle)">setStyle</a><wbr>(<a href="ITableStyle.html" title="interface in com.grapecity.documents.excel">ITableStyle</a>&nbsp;style)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the style applied to the pivot table.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setTableStyle(java.lang.String)">setTableStyle</a><wbr>(<a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;value)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the style used in the body of the PivotTable report.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setTag(java.lang.String)">setTag</a><wbr>(<a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;value)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the custom text metadata associated with the PivotTable report.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#subtotalLocation(com.grapecity.documents.excel.SubtotalLocationType)">subtotalLocation</a><wbr>(<a href="SubtotalLocationType.html" title="enum class in com.grapecity.documents.excel">SubtotalLocationType</a>&nbsp;location)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Changes the subtotal location for all existing pivot fields.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#update()">update</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Updates the PivotTable report layout and displayed results.</div>
</div>
</div>
</div>
</div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="details-list">
<!-- ============ METHOD DETAIL ========== -->
<li>
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="getColumnGrand()">
<h3>getColumnGrand</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getColumnGrand</span>()</div>
<div class="block">Gets whether the PivotTable report shows grand totals for columns. <p>This property indicates whether a grand total is displayed for the column  area of the PivotTable report. The default value is  <code>true</code>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B5").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 120},
     {"Fruit", 80},
     {"Vegetables", 95},
     {"Vegetables", 60}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.ColumnField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 boolean showColumnGrand = pivotTable.getColumnGrand();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the PivotTable report shows grand totals for columns; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setColumnGrand(boolean)">
<h3>setColumnGrand</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setColumnGrand</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the PivotTable report shows grand totals for columns. <p>This property indicates whether a grand total is displayed for the column  area of the PivotTable report. The default value is  <code>true</code>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B5").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 120},
     {"Fruit", 80},
     {"Vegetables", 95},
     {"Vegetables", 60}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.ColumnField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 pivotTable.setColumnGrand(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - Whether the PivotTable report shows grand totals for columns.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getColumnFields()">
<h3>getColumnFields</h3>
<div class="member-signature"><span class="return-type"><a href="IPivotFields.html" title="interface in com.grapecity.documents.excel">IPivotFields</a></span>&nbsp;<span class="element-name">getColumnFields</span>()</div>
<div class="block">Gets the collection of fields that are currently shown as column fields in the PivotTable report. <p>The returned collection is read-only and contains the fields whose orientation is set to column fields.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Category", "Region", "Amount"},
     {"Beverages", "East", 120},
     {"Beverages", "West", 80},
     {"Snacks", "East", 95},
     {"Snacks", "West", 110}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.ColumnField);
 IPivotFields columnFields = pivotTable.getColumnFields();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The collection of fields that are currently shown as column fields in the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getColumnRange()">
<h3>getColumnRange</h3>
<div class="member-signature"><span class="return-type"><a href="IRange.html" title="interface in com.grapecity.documents.excel">IRange</a></span>&nbsp;<span class="element-name">getColumnRange</span>()</div>
<div class="block">Gets the range that contains the column area in the PivotTable report. <p>The returned range covers the cells used for column fields in the current  PivotTable layout.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Category", "Region", "Amount"},
     {"Beverages", "East", 120},
     {"Beverages", "West", 80},
     {"Snacks", "East", 95},
     {"Snacks", "West", 110}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.ColumnField);
 pivotTable.addDataField(pivotTable.getPivotFields().get("Amount"), "Sum of Amount", ConsolidationFunction.Sum);
 IRange range = pivotTable.getColumnRange();
 String address = range.getAddress();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The range that contains the column area in the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getCompactRowIndent()">
<h3>getCompactRowIndent</h3>
<div class="member-signature"><span class="return-type">int</span>&nbsp;<span class="element-name">getCompactRowIndent</span>()</div>
<div class="block">Gets the indent increment for pivot items when compact row layout is enabled. <p>This value controls how much each nested pivot item is indented when the PivotTable report uses  compact row layout.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B5").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 120},
     {"Fruit", 80},
     {"Vegetables", 95},
     {"Vegetables", 60}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.setCompactRowIndent(2);
 int indent = pivotTable.getCompactRowIndent();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The indent increment for pivot items when compact row layout is enabled.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setCompactRowIndent(int)">
<h3>setCompactRowIndent</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setCompactRowIndent</span><wbr><span class="parameters">(int&nbsp;value)</span></div>
<div class="block">Sets the indent increment for pivot items when compact row layout is enabled. <p>This value controls how much each nested pivot item is indented when the PivotTable report uses  compact row layout.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B5").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 120},
     {"Fruit", 80},
     {"Vegetables", 95},
     {"Vegetables", 60}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.setCompactRowIndent(2);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The indent increment for pivot items when compact row layout is enabled.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDataBodyRange()">
<h3>getDataBodyRange</h3>
<div class="member-signature"><span class="return-type"><a href="IRange.html" title="interface in com.grapecity.documents.excel">IRange</a></span>&nbsp;<span class="element-name">getDataBodyRange</span>()</div>
<div class="block">Gets the range that contains the data area of the PivotTable report. <p>The returned range represents the cells between the header area and the insert row.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B5").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 120},
     {"Fruit", 80},
     {"Vegetables", 95},
     {"Vegetables", 60}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.addDataField(pivotTable.getPivotFields().get("Amount"), "Sum of Amount", ConsolidationFunction.Sum);
 IRange range = pivotTable.getDataBodyRange();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The range that contains the data area of the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDataFields()">
<h3>getDataFields</h3>
<div class="member-signature"><span class="return-type"><a href="IPivotFields.html" title="interface in com.grapecity.documents.excel">IPivotFields</a></span>&nbsp;<span class="element-name">getDataFields</span>()</div>
<div class="block">Gets the collection of fields that are currently shown as data fields in the PivotTable report. <p>The returned collection is read-only and contains the fields placed in the Values area of the PivotTable.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 100},
     {"Fruit", 80},
     {"Vegetables", 60}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.addDataField(pivotTable.getPivotFields().get("Amount"), "Sum of Amount", ConsolidationFunction.Sum);
 IPivotFields dataFields = pivotTable.getDataFields();
 String caption = dataFields.get(0).getName();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The collection of fields that are currently shown as data fields in the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDeferLayoutUpdate()">
<h3>getDeferLayoutUpdate</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getDeferLayoutUpdate</span>()</div>
<div class="block">Gets whether layout updates for the PivotTable are deferred. <p>When this property is  <code>true</code>, layout changes can be accumulated and then applied by calling  <a href="#update()"><code>update()</code></a>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Category", "Product", "Amount"},
     {"Beverages", "Tea", 100},
     {"Beverages", "Coffee", 200},
     {"Snacks", "Biscuits", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "PivotTable1");
 pivotTable.setDeferLayoutUpdate(true);
 boolean deferred = pivotTable.getDeferLayoutUpdate();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if layout updates for the PivotTable are deferred; otherwise, false.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setDeferLayoutUpdate(boolean)">
<h3>setDeferLayoutUpdate</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setDeferLayoutUpdate</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether layout updates for the PivotTable are deferred. <p>When this property is  <code>true</code>, layout changes can be accumulated and then applied by calling  <a href="#update()"><code>update()</code></a>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Category", "Product", "Amount"},
     {"Beverages", "Tea", 100},
     {"Beverages", "Coffee", 200},
     {"Snacks", "Biscuits", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "PivotTable1");
 pivotTable.setDeferLayoutUpdate(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - Whether layout updates for the PivotTable are deferred.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDisplayContextTooltips()">
<h3>getDisplayContextTooltips</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getDisplayContextTooltips</span>()</div>
<div class="block">Gets whether tooltips are displayed for PivotTable cells. <p>This property indicates whether context tooltips are shown for cells in the PivotTable report.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Name", "Amount"},
     {"A", 100},
     {"B", 200},
     {"A", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 boolean displayContextTooltips = pivotTable.getDisplayContextTooltips();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if context tooltips are displayed for PivotTable cells; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setDisplayContextTooltips(boolean)">
<h3>setDisplayContextTooltips</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setDisplayContextTooltips</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether tooltips are displayed for PivotTable cells. <p>This property indicates whether context tooltips are shown for cells in the PivotTable report.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Name", "Amount"},
     {"A", 100},
     {"B", 200},
     {"A", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setDisplayContextTooltips(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - Whether tooltips are displayed for PivotTable cells.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDisplayErrorString()">
<h3>getDisplayErrorString</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getDisplayErrorString</span>()</div>
<div class="block">Gets whether the PivotTable report displays a custom error string in cells that contain errors. <p>When this property is  <code>true</code>, the PivotTable uses the string specified by  <a href="#getErrorString()"><code>getErrorString()</code></a> for cells that contain errors. The default value is <code>false</code>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"A", 10},
     {"B", 20},
     {"A", 15}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "PivotTable1");
 pivotTable.setDisplayErrorString(true);
 boolean displayErrorString = pivotTable.getDisplayErrorString();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if the PivotTable report displays a custom error string in cells that contain errors; otherwise, false.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setDisplayErrorString(boolean)">
<h3>setDisplayErrorString</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setDisplayErrorString</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the PivotTable report displays a custom error string in cells that contain errors. <p>When this property is  <code>true</code>, the PivotTable uses the string specified by  <a href="#getErrorString()"><code>getErrorString()</code></a> for cells that contain errors. The default value is <code>false</code>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"A", 10},
     {"B", 20},
     {"A", 15}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "PivotTable1");
 pivotTable.setDisplayErrorString(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - Whether the PivotTable report displays a custom error string in cells that contain errors.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDisplayMemberPropertyTooltips()">
<h3>getDisplayMemberPropertyTooltips</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getDisplayMemberPropertyTooltips</span>()</div>
<div class="block">Gets whether member properties are displayed in PivotTable tooltips. <p>When this property is  <code>true</code>, tooltips can include member property  information for PivotTable items.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"A", 100},
     {"B", 200},
     {"A", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setDisplayMemberPropertyTooltips(true);
 boolean displayMemberPropertyTooltips = pivotTable.getDisplayMemberPropertyTooltips();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if member properties are displayed in PivotTable tooltips; otherwise, false.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setDisplayMemberPropertyTooltips(boolean)">
<h3>setDisplayMemberPropertyTooltips</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setDisplayMemberPropertyTooltips</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether member properties are displayed in PivotTable tooltips. <p>When this property is  <code>true</code>, tooltips can include member property  information for PivotTable items.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"A", 100},
     {"B", 200},
     {"A", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setDisplayMemberPropertyTooltips(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - Whether member properties are displayed in PivotTable tooltips.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDisplayNullString()">
<h3>getDisplayNullString</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getDisplayNullString</span>()</div>
<div class="block">Gets whether the PivotTable report displays a custom string in cells that contain null values. <p>When this property is  <code>true</code>, the PivotTable uses the string specified by  <a href="#getNullString()"><code>getNullString()</code></a> for cells that contain null values. The default value is <code>true</code>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Name", "Value"},
     {"A", 100},
     {"B", null},
     {"A", 200}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "PivotTable1");
 boolean displayNullString = pivotTable.getDisplayNullString();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the PivotTable report displays a custom string in cells that contain null values; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setDisplayNullString(boolean)">
<h3>setDisplayNullString</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setDisplayNullString</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the PivotTable report displays a custom string in cells that contain null values. <p>When this property is  <code>true</code>, the PivotTable uses the string specified by  <a href="#getNullString()"><code>getNullString()</code></a> for cells that contain null values. The default value is <code>true</code>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Name", "Value"},
     {"A", 100},
     {"B", null},
     {"A", 200}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "PivotTable1");
 pivotTable.setDisplayNullString(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - Whether the PivotTable report displays a custom string in cells that contain null values.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getErrorString()">
<h3>getErrorString</h3>
<div class="member-signature"><span class="return-type"><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a></span>&nbsp;<span class="element-name">getErrorString</span>()</div>
<div class="block">Gets the string displayed in cells that contain errors when  <a href="#getDisplayErrorString()"><code>getDisplayErrorString()</code></a> is <code>true</code>. <p>The default value is an empty string ( <code>""</code>). Use  <a href="#setErrorString(java.lang.String)"><code>setErrorString(String)</code></a> to specify the custom error text shown by the PivotTable for error cells.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"A", 10},
     {"B", 20},
     {"A", 15}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "PivotTable1");
 pivotTable.setDisplayErrorString(true);
 pivotTable.setErrorString("Invalid");
 String errorString = pivotTable.getErrorString();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The string displayed in cells that contain errors when <a href="#getDisplayErrorString()"><code>getDisplayErrorString()</code></a> is <code>true</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setErrorString(java.lang.String)">
<h3>setErrorString</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setErrorString</span><wbr><span class="parameters">(<a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;value)</span></div>
<div class="block">Sets the string displayed in cells that contain errors when  <a href="#getDisplayErrorString()"><code>getDisplayErrorString()</code></a> is <code>true</code>. <p>The default value is an empty string ( <code>""</code>). Use  <a href="#setErrorString(java.lang.String)"><code>setErrorString(String)</code></a> to specify the custom error text shown by the PivotTable for error cells.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"A", 10},
     {"B", 20},
     {"A", 15}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "PivotTable1");
 pivotTable.setDisplayErrorString(true);
 pivotTable.setErrorString("Invalid");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The string displayed in cells that contain errors when <a href="#getDisplayErrorString()"><code>getDisplayErrorString()</code></a> is <code>true</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getGrandTotalName()">
<h3>getGrandTotalName</h3>
<div class="member-signature"><span class="return-type"><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a></span>&nbsp;<span class="element-name">getGrandTotalName</span>()</div>
<div class="block">Gets the text label displayed in the grand total row heading or grand total column heading of the PivotTable report. <p>The default label is  <code>"Grand Total"</code>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Region", "Sales"},
     {"East", 100},
     {"West", 200},
     {"East", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 String grandTotalName = pivotTable.getGrandTotalName();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The text label displayed in the grand total row heading or grand total column heading of the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setGrandTotalName(java.lang.String)">
<h3>setGrandTotalName</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setGrandTotalName</span><wbr><span class="parameters">(<a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;value)</span></div>
<div class="block">Sets the text label displayed in the grand total row heading or grand total column heading of the PivotTable report. <p>The default label is  <code>"Grand Total"</code>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Region", "Sales"},
     {"East", 100},
     {"West", 200},
     {"East", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setGrandTotalName("Sample");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The text label displayed in the grand total row heading or grand total column heading of the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getLayoutRowDefault()">
<h3>getLayoutRowDefault</h3>
<div class="member-signature"><span class="return-type"><a href="LayoutRowType.html" title="enum class in com.grapecity.documents.excel">LayoutRowType</a></span>&nbsp;<span class="element-name">getLayoutRowDefault</span>()</div>
<div class="block">Gets the default row layout type that is applied when PivotFields are added to the PivotTable for the first time. <p>This setting determines the initial row layout used for newly added PivotFields,  such as compact, outline, or tabular layout.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C4").setValue(new Object[][] {
     {"Region", "Product", "Amount"},
     {"East", "Apple", 120},
     {"West", "Apple", 80},
     {"East", "Orange", 90}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.setLayoutRowDefault(LayoutRowType.TabularRow);
 LayoutRowType layoutType = pivotTable.getLayoutRowDefault();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The default row layout type that is applied when PivotFields are added to the PivotTable for the first time.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setLayoutRowDefault(com.grapecity.documents.excel.LayoutRowType)">
<h3>setLayoutRowDefault</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setLayoutRowDefault</span><wbr><span class="parameters">(<a href="LayoutRowType.html" title="enum class in com.grapecity.documents.excel">LayoutRowType</a>&nbsp;value)</span></div>
<div class="block">Sets the default layout row type for  <a href="IPivotField.html" title="interface in com.grapecity.documents.excel"><code>IPivotField</code></a> objects when they are added to the <a href="IPivotTable.html" title="interface in com.grapecity.documents.excel"><code>IPivotTable</code></a> for the first time.<p>This setting applies to newly added PivotFields. To change the layout of existing PivotFields at the same time, use  <a href="#setRowAxisLayout(com.grapecity.documents.excel.LayoutRowType)"><code>setRowAxisLayout(LayoutRowType)</code></a>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Region", "Product", "Amount"},
     {"East", "Apple", 100},
     {"East", "Pear", 80},
     {"West", "Apple", 120},
     {"West", "Pear", 90}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.setLayoutRowDefault(LayoutRowType.TabularRow);
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.RowField);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The default layout row type to apply when a PivotField is added to the PivotTable for the first time.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getMergeLabels()">
<h3>getMergeLabels</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getMergeLabels</span>()</div>
<div class="block">Gets whether the specified PivotTable report uses merged cells for outer-row items,  column items, subtotals, and grand total labels. <p>Use this property to determine whether repeated labels in the PivotTable layout  are displayed by merging adjacent cells.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Region", "Product", "Amount"},
     {"East", "Apple", 100},
     {"East", "Pear", 200},
     {"West", "Apple", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Product").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 pivotTable.setMergeLabels(true);
 boolean mergeLabels = pivotTable.getMergeLabels();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the specified PivotTable report uses merged cells for outer-row items, column items, subtotals, and grand total labels; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setMergeLabels(boolean)">
<h3>setMergeLabels</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setMergeLabels</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the specified PivotTable report uses merged cells for outer-row items,  column items, subtotals, and grand total labels. <p>Use this property to set whether repeated labels in the PivotTable layout are displayed by merging adjacent cells.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Region", "Product", "Amount"},
     {"East", "Apple", 100},
     {"East", "Pear", 200},
     {"West", "Apple", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Product").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 pivotTable.setMergeLabels(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - Whether the specified PivotTable report uses merged cells for outer-row items, column items, subtotals, and grand total labels.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getName()">
<h3>getName</h3>
<div class="member-signature"><span class="return-type"><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a></span>&nbsp;<span class="element-name">getName</span>()</div>
<div class="block">Gets the name of the PivotTable. <p>The name identifies the PivotTable on the worksheet and can be used to  reference the PivotTable programmatically.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C4").setValue(new Object[][] {
     {"Region", "Product", "Amount"},
     {"East", "Apple", 120},
     {"West", "Apple", 80},
     {"East", "Orange", 90}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 String name = pivotTable.getName();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The PivotTable name.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setName(java.lang.String)">
<h3>setName</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setName</span><wbr><span class="parameters">(<a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;value)</span></div>
<div class="block">Sets the name of the PivotTable. <p>The name identifies the PivotTable on the worksheet and can be used to  reference the PivotTable programmatically.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C4").setValue(new Object[][] {
     {"Region", "Product", "Amount"},
     {"East", "Apple", 120},
     {"West", "Apple", 80},
     {"East", "Orange", 90}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.setName("Sample");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The PivotTable name.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getNullString()">
<h3>getNullString</h3>
<div class="member-signature"><span class="return-type"><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a></span>&nbsp;<span class="element-name">getNullString</span>()</div>
<div class="block">Gets the string displayed in PivotTable cells that contain null values when  <a href="#getDisplayNullString()"><code>getDisplayNullString()</code></a> is <code>true</code>. <p>The default value is an empty string ( <code>""</code>).</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Name", "Value"},
     {"A", 100},
     {"B", null},
     {"A", 200}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setDisplayNullString(true);
 pivotTable.setNullString("(blank)");
 String nullString = pivotTable.getNullString();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The string displayed in PivotTable cells that contain null values when <a href="#getDisplayNullString()"><code>getDisplayNullString()</code></a> is <code>true</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setNullString(java.lang.String)">
<h3>setNullString</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setNullString</span><wbr><span class="parameters">(<a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;value)</span></div>
<div class="block">Sets the string displayed in PivotTable cells that contain null values when  <a href="#getDisplayNullString()"><code>getDisplayNullString()</code></a> is <code>true</code>. <p>The default value is an empty string ( <code>""</code>).</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Name", "Value"},
     {"A", 100},
     {"B", null},
     {"A", 200}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setDisplayNullString(true);
 pivotTable.setNullString("(blank)");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The string displayed in PivotTable cells that contain null values when <a href="#getDisplayNullString()"><code>getDisplayNullString()</code></a> is <code>true</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPageFieldOrder()">
<h3>getPageFieldOrder</h3>
<div class="member-signature"><span class="return-type"><a href="Order.html" title="enum class in com.grapecity.documents.excel">Order</a></span>&nbsp;<span class="element-name">getPageFieldOrder</span>()</div>
<div class="block">Gets the order in which page fields are added to the PivotTable report layout. <p>The returned value is one of the  <a href="Order.html" title="enum class in com.grapecity.documents.excel"><code>Order</code></a> constants: <a href="Order.html#DownThenOver"><code>Order.DownThenOver</code></a> or <a href="Order.html#OverThenDown"><code>Order.OverThenDown</code></a>. The default value is  <a href="Order.html#DownThenOver"><code>Order.DownThenOver</code></a>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Region", "Product", "Amount"},
     {"East", "Apple", 100},
     {"East", "Pear", 80},
     {"West", "Apple", 90},
     {"West", "Pear", 70}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.PageField);
 pivotTable.setPageFieldOrder(Order.OverThenDown);
 Order order = pivotTable.getPageFieldOrder();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The order in which page fields are added to the PivotTable report layout.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPageFieldOrder(com.grapecity.documents.excel.Order)">
<h3>setPageFieldOrder</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPageFieldOrder</span><wbr><span class="parameters">(<a href="Order.html" title="enum class in com.grapecity.documents.excel">Order</a>&nbsp;value)</span></div>
<div class="block">Sets the order in which page fields are added to the PivotTable report layout. <p>Use  <a href="Order.html#DownThenOver"><code>Order.DownThenOver</code></a> to place page fields down each column before moving to the next column, or  <a href="Order.html#OverThenDown"><code>Order.OverThenDown</code></a> to place page fields across each row before moving to the next row. The default value is  <a href="Order.html#DownThenOver"><code>Order.DownThenOver</code></a>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Region", "Product", "Amount"},
     {"East", "Apple", 100},
     {"East", "Pear", 80},
     {"West", "Apple", 90},
     {"West", "Pear", 70}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.PageField);
 pivotTable.setPageFieldOrder(Order.OverThenDown);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The page field layout order. Use <a href="Order.html#DownThenOver"><code>Order.DownThenOver</code></a> or <a href="Order.html#OverThenDown"><code>Order.OverThenDown</code></a>; if  <code>null</code> is specified, it is treated as <a href="Order.html#DownThenOver"><code>Order.DownThenOver</code></a>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPageFields()">
<h3>getPageFields</h3>
<div class="member-signature"><span class="return-type"><a href="IPivotFields.html" title="interface in com.grapecity.documents.excel">IPivotFields</a></span>&nbsp;<span class="element-name">getPageFields</span>()</div>
<div class="block">Gets the collection of fields that are currently displayed as page fields in the PivotTable. <p>The returned collection is read-only and contains the fields whose orientation  is set to the page area of the PivotTable report.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Region", "Product", "Amount"},
     {"East", "Apple", 100},
     {"East", "Pear", 80},
     {"West", "Apple", 90},
     {"West", "Pear", 70}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.PageField);
 IPivotFields pageFields = pivotTable.getPageFields();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The collection of fields that are currently displayed as page fields in the PivotTable.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPageFieldWrapCount()">
<h3>getPageFieldWrapCount</h3>
<div class="member-signature"><span class="return-type">int</span>&nbsp;<span class="element-name">getPageFieldWrapCount</span>()</div>
<div class="block">Gets the number of page fields displayed in each column or row of the PivotTable report. <p>This value determines how page fields are wrapped in the report filter area  when the PivotTable contains multiple page fields. Use  <a href="#setPageFieldWrapCount(int)"><code>setPageFieldWrapCount(int)</code></a> to change the layout.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:D5").setValue(new Object[][] {
     {"Region", "Product", "Quarter", "Amount"},
     {"East", "Apple", "Q1", 120},
     {"East", "Pear", "Q2", 95},
     {"West", "Apple", "Q1", 80},
     {"West", "Pear", "Q2", 110}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:D5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("F1"), "SalesPivot");
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.PageField);
 pivotTable.getPivotFields().get("Quarter").setOrientation(PivotFieldOrientation.PageField);
 pivotTable.setPageFieldWrapCount(1);
 int wrapCount = pivotTable.getPageFieldWrapCount();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The number of page fields displayed in each column or row of the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPageFieldWrapCount(int)">
<h3>setPageFieldWrapCount</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPageFieldWrapCount</span><wbr><span class="parameters">(int&nbsp;value)</span></div>
<div class="block">Sets the number of page fields displayed in each column or row of the PivotTable report. <p>This value determines how page fields are wrapped in the report filter area  when the PivotTable contains multiple page fields. Use  <a href="#setPageFieldWrapCount(int)"><code>setPageFieldWrapCount(int)</code></a> to change the layout.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:D5").setValue(new Object[][] {
     {"Region", "Product", "Quarter", "Amount"},
     {"East", "Apple", "Q1", 120},
     {"East", "Pear", "Q2", 95},
     {"West", "Apple", "Q1", 80},
     {"West", "Pear", "Q2", 110}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:D5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("F1"), "SalesPivot");
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.PageField);
 pivotTable.getPivotFields().get("Quarter").setOrientation(PivotFieldOrientation.PageField);
 pivotTable.setPageFieldWrapCount(1);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The number of page fields displayed in each column or row of the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPageRange()">
<h3>getPageRange</h3>
<div class="member-signature"><span class="return-type"><a href="IRange.html" title="interface in com.grapecity.documents.excel">IRange</a></span>&nbsp;<span class="element-name">getPageRange</span>()</div>
<div class="block">Gets the range that contains the page area in the PivotTable report. <p>The page area is the report filter area that displays fields whose orientation is set to page fields.  This method returns  <code>null</code> if the PivotTable does not currently have a page area.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Region", "Product", "Amount"},
     {"East", "Apple", 100},
     {"East", "Pear", 80},
     {"West", "Apple", 90},
     {"West", "Pear", 70}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.PageField);
 IRange pageRange = pivotTable.getPageRange();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The range that contains the page area in the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPivotColumnAxis()">
<h3>getPivotColumnAxis</h3>
<div class="member-signature"><span class="return-type"><a href="IPivotAxis.html" title="interface in com.grapecity.documents.excel">IPivotAxis</a></span>&nbsp;<span class="element-name">getPivotColumnAxis</span>()</div>
<div class="block">Gets the  <a href="IPivotAxis.html" title="interface in com.grapecity.documents.excel"><code>IPivotAxis</code></a> object that represents the entire column axis of the PivotTable report.<p>Use this axis to work with the column-side structure of a PivotTable, such as the pivot lines displayed across the top of the report.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Category", "Region", "Amount"},
     {"Beverages", "East", 120},
     {"Beverages", "West", 80},
     {"Snacks", "East", 95},
     {"Snacks", "West", 110}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.ColumnField);
 IPivotAxis columnAxis = pivotTable.getPivotColumnAxis();
 IPivotLines lines = columnAxis.getPivotLines();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The <a href="IPivotAxis.html" title="interface in com.grapecity.documents.excel"><code>IPivotAxis</code></a> object that represents the entire column axis of the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPivotRowAxis()">
<h3>getPivotRowAxis</h3>
<div class="member-signature"><span class="return-type"><a href="IPivotAxis.html" title="interface in com.grapecity.documents.excel">IPivotAxis</a></span>&nbsp;<span class="element-name">getPivotRowAxis</span>()</div>
<div class="block">Gets the  <a href="IPivotAxis.html" title="interface in com.grapecity.documents.excel"><code>IPivotAxis</code></a> object that represents the entire row axis of the PivotTable report.<p>Use this axis to work with the row-side structure of a PivotTable, such as the pivot lines displayed down the left side of the report.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Category", "Region", "Amount"},
     {"Beverages", "East", 120},
     {"Beverages", "West", 80},
     {"Snacks", "East", 95},
     {"Snacks", "West", 110}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.RowField);
 IPivotAxis rowAxis = pivotTable.getPivotRowAxis();
 IPivotLines lines = rowAxis.getPivotLines();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The <a href="IPivotAxis.html" title="interface in com.grapecity.documents.excel"><code>IPivotAxis</code></a> object that represents the entire row axis of the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getRowFields()">
<h3>getRowFields</h3>
<div class="member-signature"><span class="return-type"><a href="IPivotFields.html" title="interface in com.grapecity.documents.excel">IPivotFields</a></span>&nbsp;<span class="element-name">getRowFields</span>()</div>
<div class="block">Gets the collection of fields that are currently shown as row fields in the PivotTable report. <p>The returned  <a href="IPivotFields.html" title="interface in com.grapecity.documents.excel"><code>IPivotFields</code></a> collection is read-only and contains the fields whose orientation is set to row fields.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Region", "Product", "Amount"},
     {"East", "Apple", 120},
     {"East", "Pear", 80},
     {"West", "Apple", 95},
     {"West", "Pear", 110}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Product").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 IPivotFields rowFields = pivotTable.getRowFields();
 String firstFieldName = rowFields.get(0).getName();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The IPivotFields collection currently shown as row fields; see <a href="IPivotFields.html" title="interface in com.grapecity.documents.excel"><code>IPivotFields</code></a>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getRowGrand()">
<h3>getRowGrand</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getRowGrand</span>()</div>
<div class="block">Gets whether the PivotTable report shows grand totals for rows. <p>Use this method to determine whether the PivotTable displays a grand total row for the row fields.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Region", "Amount"},
     {"East", 120},
     {"West", 150},
     {"East", 90}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 boolean showRowGrand = pivotTable.getRowGrand();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the PivotTable report shows grand totals for rows; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setRowGrand(boolean)">
<h3>setRowGrand</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setRowGrand</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the PivotTable report shows grand totals for rows. <p>Use this method to set whether the PivotTable displays a grand total row for the row fields.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Region", "Amount"},
     {"East", 120},
     {"West", 150},
     {"East", 90}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 pivotTable.setRowGrand(value);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - Whether the PivotTable report shows grand totals for rows.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getRowRange()">
<h3>getRowRange</h3>
<div class="member-signature"><span class="return-type"><a href="IRange.html" title="interface in com.grapecity.documents.excel">IRange</a></span>&nbsp;<span class="element-name">getRowRange</span>()</div>
<div class="block">Gets the range that includes the row area in the PivotTable report. <p>The returned range represents the cells used by row fields and row items in the current PivotTable layout.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B5").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 120},
     {"Fruit", 80},
     {"Vegetables", 95},
     {"Vegetables", 60}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.RowField);
 IRange rowRange = pivotTable.getRowRange();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The range that includes the row area in the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getShowTableStyleColumnHeaders()">
<h3>getShowTableStyleColumnHeaders</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getShowTableStyleColumnHeaders</span>()</div>
<div class="block">Gets whether column headers are displayed in the PivotTable. <p>This property indicates whether the PivotTable shows its column header area  using the current table style settings.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:D5").setValue(new Object[][] {
     {"Category", "Product", "Amount", "Region"},
     {"Beverages", "Tea", 100, "East"},
     {"Beverages", "Coffee", 200, "West"},
     {"Snacks", "Chips", 150, "East"},
     {"Snacks", "Nuts", 120, "West"}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:D5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("F1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.ColumnField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 boolean showColumnHeaders = pivotTable.getShowTableStyleColumnHeaders();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if column headers are displayed in the PivotTable; otherwise, false.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setShowTableStyleColumnHeaders(boolean)">
<h3>setShowTableStyleColumnHeaders</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setShowTableStyleColumnHeaders</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether column headers are displayed in the PivotTable. <p>This property indicates whether the PivotTable shows its column header area  using the current table style settings.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:D5").setValue(new Object[][] {
     {"Category", "Product", "Amount", "Region"},
     {"Beverages", "Tea", 100, "East"},
     {"Beverages", "Coffee", 200, "West"},
     {"Snacks", "Chips", 150, "East"},
     {"Snacks", "Nuts", 120, "West"}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:D5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("F1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.ColumnField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 pivotTable.setShowTableStyleColumnHeaders(value);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - Whether column headers are displayed in the PivotTable.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getShowTableStyleColumnStripes()">
<h3>getShowTableStyleColumnStripes</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getShowTableStyleColumnStripes</span>()</div>
<div class="block">Gets whether banded columns are displayed in the PivotTable style. <p>When this property is  <code>true</code>, even columns are formatted differently  from odd columns to make the PivotTable easier to read.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 100},
     {"Drink", 200},
     {"Fruit", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setShowTableStyleColumnStripes(true);
 boolean showColumnStripes = pivotTable.getShowTableStyleColumnStripes();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if banded columns are displayed in the PivotTable style; otherwise, false.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setShowTableStyleColumnStripes(boolean)">
<h3>setShowTableStyleColumnStripes</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setShowTableStyleColumnStripes</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether banded columns are displayed in the PivotTable style. <p>When this property is  <code>true</code>, even columns are formatted differently  from odd columns to make the PivotTable easier to read.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 100},
     {"Drink", 200},
     {"Fruit", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setShowTableStyleColumnStripes(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - Whether banded columns are displayed in the PivotTable style.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getShowTableStyleLastColumn()">
<h3>getShowTableStyleLastColumn</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getShowTableStyleLastColumn</span>()</div>
<div class="block">Gets whether the last column style is displayed in the PivotTable. <p>This property indicates whether the PivotTable style is applied to the last column of the PivotTable report.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 100},
     {"Drink", 200},
     {"Fruit", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 pivotTable.setShowTableStyleLastColumn(true);
 boolean showLastColumnStyle = pivotTable.getShowTableStyleLastColumn();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if the last column style is displayed in the PivotTable; otherwise, false.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setShowTableStyleLastColumn(boolean)">
<h3>setShowTableStyleLastColumn</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setShowTableStyleLastColumn</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the last column style is displayed in the PivotTable. <p>This property indicates whether the PivotTable style is applied to the last column of the PivotTable report.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 100},
     {"Drink", 200},
     {"Fruit", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 pivotTable.setShowTableStyleLastColumn(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - Whether the last column style is displayed in the PivotTable.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getShowTableStyleRowHeaders()">
<h3>getShowTableStyleRowHeaders</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getShowTableStyleRowHeaders</span>()</div>
<div class="block">Gets whether row headers are displayed in the PivotTable style. <p>Use this method to determine whether the current PivotTable style shows row header formatting.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 100},
     {"Drink", 200},
     {"Fruit", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setShowTableStyleRowHeaders(true);
 boolean showRowHeaders = pivotTable.getShowTableStyleRowHeaders();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if row headers are displayed in the PivotTable style; otherwise, false.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setShowTableStyleRowHeaders(boolean)">
<h3>setShowTableStyleRowHeaders</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setShowTableStyleRowHeaders</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether row headers are displayed in the PivotTable style. <p>Use this method to set whether the current PivotTable style shows row header formatting.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 100},
     {"Drink", 200},
     {"Fruit", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setShowTableStyleRowHeaders(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - Whether row headers are displayed in the PivotTable style.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getShowTableStyleRowStripes()">
<h3>getShowTableStyleRowStripes</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getShowTableStyleRowStripes</span>()</div>
<div class="block">Gets whether banded rows are displayed in the PivotTable so that even rows are formatted differently from odd rows. <p>When this property is  <code>true</code>, the PivotTable style applies alternating row formatting to improve readability.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Beverages", 120},
     {"Snacks", 95},
     {"Beverages", 80}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 boolean showRowStripes = pivotTable.getShowTableStyleRowStripes();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if banded rows are displayed in the PivotTable so that even rows are formatted differently from odd rows; otherwise, false.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setShowTableStyleRowStripes(boolean)">
<h3>setShowTableStyleRowStripes</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setShowTableStyleRowStripes</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether banded rows are displayed in the PivotTable so that even rows are formatted differently from odd rows. <p>When this property is  <code>true</code>, the PivotTable style applies alternating row formatting to improve readability.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Beverages", 120},
     {"Snacks", 95},
     {"Beverages", 80}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 pivotTable.setShowTableStyleRowStripes(value);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - Whether banded rows are displayed in the PivotTable so that even rows are formatted differently from odd rows.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getTableRange1()">
<h3>getTableRange1</h3>
<div class="member-signature"><span class="return-type"><a href="IRange.html" title="interface in com.grapecity.documents.excel">IRange</a></span>&nbsp;<span class="element-name">getTableRange1</span>()</div>
<div class="block">Gets the range that contains the entire PivotTable report, excluding page fields. <p>Use this method to access the rendered PivotTable area without including  any page field region that is displayed separately from the main report.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 100},
     {"Fruit", 200},
     {"Vegetable", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 IRange range = pivotTable.getTableRange1();
 String address = range.toString();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The range that contains the entire PivotTable report, excluding page fields.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getTableRange2()">
<h3>getTableRange2</h3>
<div class="member-signature"><span class="return-type"><a href="IRange.html" title="interface in com.grapecity.documents.excel">IRange</a></span>&nbsp;<span class="element-name">getTableRange2</span>()</div>
<div class="block">Gets the range that contains the entire PivotTable report, including page fields. <p>Use this method to retrieve the full displayed PivotTable area, including  filter areas, rather than only the main report body.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Beverages", 120},
     {"Beverages", 80},
     {"Snacks", 50}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D2"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 IRange range = pivotTable.getTableRange2();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The range that contains the entire PivotTable report, including page fields.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getTableStyle()">
<h3>getTableStyle</h3>
<div class="member-signature"><span class="return-type"><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a></span>&nbsp;<span class="element-name">getTableStyle</span>()</div>
<div class="block">Gets the style used in the body of the PivotTable report. <p>The default value is a null string, which indicates that no style is applied.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Beverages", 120},
     {"Beverages", 80},
     {"Snacks", 95}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setTableStyle("PivotStyleMedium9");
 String styleName = pivotTable.getTableStyle();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The style used in the body of the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setTableStyle(java.lang.String)">
<h3>setTableStyle</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setTableStyle</span><wbr><span class="parameters">(<a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;value)</span></div>
<div class="block">Sets the style used in the body of the PivotTable report. <p>The default value is a null string, which indicates that no style is applied.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Beverages", 120},
     {"Beverages", 80},
     {"Snacks", 95}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setTableStyle("PivotStyleMedium9");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The style used in the body of the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getTag()">
<h3>getTag</h3>
<div class="member-signature"><span class="return-type"><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a></span>&nbsp;<span class="element-name">getTag</span>()</div>
<div class="block">Gets the string saved with the PivotTable report. <p>Use this property to retrieve custom text metadata associated with the PivotTable report.  To store a value, use  <a href="#setTag(java.lang.String)"><code>setTag(String)</code></a>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Region", "Amount"},
     {"East", 120},
     {"West", 80},
     {"East", 90}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setTag("Monthly sales summary");
 String tag = pivotTable.getTag();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The string saved with the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setTag(java.lang.String)">
<h3>setTag</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setTag</span><wbr><span class="parameters">(<a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;value)</span></div>
<div class="block">Sets the custom text metadata associated with the PivotTable report. <p>The value is saved with the PivotTable report.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Region", "Amount"},
     {"East", 120},
     {"West", 80},
     {"East", 90}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setTag("Monthly sales summary");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The custom text metadata to associate with the PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="addDataField(com.grapecity.documents.excel.IPivotField,java.lang.String,com.grapecity.documents.excel.ConsolidationFunction)">
<h3>addDataField</h3>
<div class="member-signature"><span class="return-type"><a href="IPivotField.html" title="interface in com.grapecity.documents.excel">IPivotField</a></span>&nbsp;<span class="element-name">addDataField</span><wbr><span class="parameters">(<a href="IPivotField.html" title="interface in com.grapecity.documents.excel">IPivotField</a>&nbsp;field,
 <a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a>&nbsp;caption,
 <a href="ConsolidationFunction.html" title="enum class in com.grapecity.documents.excel">ConsolidationFunction</a>&nbsp;function)</span></div>
<div class="block">Adds a data field to the PivotTable report. <p>Use this method to add a source field to the values area and specify the  summary function used for that data field.</p>
<pre><code data-language="Java">
 Object[][] sourceData = {
     {"Region", "Product", "Amount"},
     {"East", "Apple", 120},
     {"West", "Apple", 80},
     {"East", "Orange", 90}
 };
 worksheet.getRange("A1:C4").setValue(sourceData);
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.addDataField(pivotTable.getPivotFields().get("Amount"), "Sum of Amount", ConsolidationFunction.Sum);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>field</code> - The unique field on the server. If the source data is OLAP, this field is a cube field; otherwise, it is a PivotTable field.</dd>
<dd><code>caption</code> - The label used in the PivotTable report to identify the added data field.</dd>
<dd><code>function</code> - The function performed in the added data field.</dd>
<dt>Returns:</dt>
<dd>The added <a href="IPivotField.html" title="interface in com.grapecity.documents.excel"><code>IPivotField</code></a>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getCalculatedFields()">
<h3>getCalculatedFields</h3>
<div class="member-signature"><span class="return-type"><a href="ICalculatedFields.html" title="interface in com.grapecity.documents.excel">ICalculatedFields</a></span>&nbsp;<span class="element-name">getCalculatedFields</span>()</div>
<div class="block">Gets the collection of calculated fields in this PivotTable report. <p>Use the returned  <a href="ICalculatedFields.html" title="interface in com.grapecity.documents.excel"><code>ICalculatedFields</code></a> collection to access or add calculated fields for the current PivotTable.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Product", "Amount"},
     {"Apple", 120},
     {"Orange", 90},
     {"Apple", 80}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 ICalculatedFields calculatedFields = pivotTable.getCalculatedFields();
 calculatedFields.add("DoubleAmount", "=Amount*2");
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The ICalculatedFields collection in this PivotTable report; see <a href="ICalculatedFields.html" title="interface in com.grapecity.documents.excel"><code>ICalculatedFields</code></a>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="clearAllFilters()">
<h3>clearAllFilters</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">clearAllFilters</span>()</div>
<div class="block">Deletes all filters currently applied to the pivot table. <p>This method removes filters in the pivot table's filter collection, clears  manual filtering, and resets all pivot fields in the Report Filter area to  their default item.</p>
<pre><code data-language="Java">
 Object[][] sourceData = {
     {"Product", "Country", "Amount"},
     {"Apple", "Canada", 120},
     {"Apple", "France", 150},
     {"Banana", "Canada", 90}
 };
 worksheet.getRange("A1:C4").setValue(sourceData);
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "PivotTable1");
 IPivotField fieldProduct = pivotTable.getPivotFields().get("Product");
 fieldProduct.setOrientation(PivotFieldOrientation.RowField);
 IPivotField fieldAmount = pivotTable.getPivotFields().get("Amount");
 fieldAmount.setOrientation(PivotFieldOrientation.DataField);
 fieldProduct.getPivotFilters().add(PivotFilterType.CaptionContains, "pp");
 pivotTable.clearAllFilters();
 </code></pre></div>
</section>
</li>
<li>
<section class="detail" id="clearTable()">
<h3>clearTable</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">clearTable</span>()</div>
<div class="block">Clears the PivotTable. <p>Clearing a PivotTable removes all fields and deletes any filtering and sorting  applied to the report. This method resets the PivotTable to the state it had  immediately after creation, before any fields were added.</p>
<pre><code data-language="Java">
 Object[][] sourceData = {
     {"Product", "Region", "Amount"},
     {"Apple", "East", 120},
     {"Pear", "West", 80}
 };
 worksheet.getRange("A1:C3").setValue(sourceData);
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C3"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "PivotTable1");
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.addDataField(pivotTable.getPivotFields().get("Amount"), "Sum of Amount", ConsolidationFunction.Sum);
 pivotTable.clearTable();
 </code></pre></div>
</section>
</li>
<li>
<section class="detail" id="getPivotCache()">
<h3>getPivotCache</h3>
<div class="member-signature"><span class="return-type"><a href="IPivotCache.html" title="interface in com.grapecity.documents.excel">IPivotCache</a></span>&nbsp;<span class="element-name">getPivotCache</span>()</div>
<div class="block">Gets the  <a href="IPivotCache.html" title="interface in com.grapecity.documents.excel"><code>IPivotCache</code></a> used by this PivotTable report.<p>The returned cache represents the source data cache associated with the PivotTable.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Product", "Sales"},
     {"Apple", 100},
     {"Orange", 200},
     {"Pear", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 IPivotCache cache = pivotTable.getPivotCache();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The <a href="IPivotCache.html" title="interface in com.grapecity.documents.excel"><code>IPivotCache</code></a> used by this PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPivotFields()">
<h3>getPivotFields</h3>
<div class="member-signature"><span class="return-type"><a href="IPivotFields.html" title="interface in com.grapecity.documents.excel">IPivotFields</a></span>&nbsp;<span class="element-name">getPivotFields</span>()</div>
<div class="block">Gets the collection of PivotTable fields in the PivotTable report. <p>The returned  <a href="IPivotFields.html" title="interface in com.grapecity.documents.excel"><code>IPivotFields</code></a> collection includes both visible and hidden fields from the PivotTable data source. You can use this collection to access  individual fields and configure how they are used in the report layout.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B5").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Fruit", 120},
     {"Fruit", 80},
     {"Vegetables", 95},
     {"Vegetables", 60}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 IPivotFields pivotFields = pivotTable.getPivotFields();
 pivotFields.get("Category").setOrientation(PivotFieldOrientation.RowField);
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The IPivotFields collection in the PivotTable report; see <a href="IPivotFields.html" title="interface in com.grapecity.documents.excel"><code>IPivotFields</code></a>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="pivotValueCell(int,int)">
<h3>pivotValueCell</h3>
<div class="member-signature"><span class="return-type"><a href="IPivotValueCell.html" title="interface in com.grapecity.documents.excel">IPivotValueCell</a></span>&nbsp;<span class="element-name">pivotValueCell</span><wbr><span class="parameters">(int&nbsp;rowline,
 int&nbsp;columnline)</span></div>
<div class="block">Retrieves the  <a href="IPivotValueCell.html" title="interface in com.grapecity.documents.excel"><code>IPivotValueCell</code></a> at the specified row and column position in the PivotTable data area.<p>Use this method to access a calculated value cell in a PivotTable report and then inspect  its value or related  <a href="IPivotCell.html" title="interface in com.grapecity.documents.excel"><code>IPivotCell</code></a> information.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B3").setValue(new Object[][] {
     {"Region", "Amount"},
     {"East", 100},
     {"West", 200}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B3"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"));
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 IPivotValueCell valueCell = pivotTable.pivotValueCell(0, 0);
 Object value = valueCell.getValue();
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>rowline</code> - The row position in the data area.</dd>
<dd><code>columnline</code> - The column position in the data area.</dd>
<dt>Returns:</dt>
<dd>The <a href="IPivotValueCell.html" title="interface in com.grapecity.documents.excel"><code>IPivotValueCell</code></a> at the specified position.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="refresh()">
<h3>refresh</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">refresh</span>()</div>
<div class="block">Refreshes the PivotTable report from its source data. <p>Use this method after the source data has changed and you need the PivotTable to  reflect the latest data.</p> <p>This method performs the following actions:</p> <ol> <li>Refreshes the underlying  <a href="IPivotCache.html" title="interface in com.grapecity.documents.excel"><code>IPivotCache</code></a>.</li> <li>Synchronizes  <a href="IPivotFields.html" title="interface in com.grapecity.documents.excel"><code>IPivotFields</code></a> with the refreshed cache.</li><li>Recalculates and updates the PivotTable report on the worksheet.</li> </ol> <p>If only the PivotTable layout or display settings have changed and the source data  has not changed, use  <a href="#update()"><code>update()</code></a> instead.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Product", "Amount"},
     {"Apple", 100},
     {"Apple", 200},
     {"Orange", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "PivotTable1");
 pivotTable.getPivotFields().get("Product").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 worksheet.getRange("B2").setValue(120);
 boolean refreshed = pivotTable.refresh();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the refresh succeeds.</dd>
<dt>Throws:</dt>
<dd><code><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</a></code> - if the source sheet of the PivotTable cannot be found.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="repeatAllLabels(com.grapecity.documents.excel.PivotFieldRepeatLabels)">
<h3>repeatAllLabels</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">repeatAllLabels</span><wbr><span class="parameters">(<a href="PivotFieldRepeatLabels.html" title="enum class in com.grapecity.documents.excel">PivotFieldRepeatLabels</a>&nbsp;repeat)</span></div>
<div class="block">Sets whether to repeat item labels for all pivot fields in this pivot table. <p>This setting is applied to all existing pivot fields in the pivot table.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Category", "Product", "Amount"},
     {"Beverages", "Tea", 100},
     {"Beverages", "Coffee", 200},
     {"Snacks", "Chips", 150},
     {"Snacks", "Nuts", 120}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Product").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.repeatAllLabels(PivotFieldRepeatLabels.RepeatLabels);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>repeat</code> - Specifies whether to repeat item labels for all pivot fields in the pivot table.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setRowAxisLayout(com.grapecity.documents.excel.LayoutRowType)">
<h3>setRowAxisLayout</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setRowAxisLayout</span><wbr><span class="parameters">(<a href="LayoutRowType.html" title="enum class in com.grapecity.documents.excel">LayoutRowType</a>&nbsp;rowLayout)</span></div>
<div class="block">Sets the row axis layout for all existing PivotFields in the pivot table. <p>Use this method to apply a single  <a href="LayoutRowType.html" title="enum class in com.grapecity.documents.excel"><code>LayoutRowType</code></a> to the current row fields at once. To set the default layout for PivotFields added later, use  <a href="#setLayoutRowDefault(com.grapecity.documents.excel.LayoutRowType)"><code>setLayoutRowDefault(LayoutRowType)</code></a>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Region", "Product", "Amount"},
     {"East", "Apple", 120},
     {"West", "Apple", 80},
     {"East", "Orange", 90},
     {"West", "Orange", 110}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Region").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Product").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 pivotTable.setRowAxisLayout(LayoutRowType.TabularRow);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>rowLayout</code> - The row axis layout type to apply to all existing PivotFields.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="subtotalLocation(com.grapecity.documents.excel.SubtotalLocationType)">
<h3>subtotalLocation</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">subtotalLocation</span><wbr><span class="parameters">(<a href="SubtotalLocationType.html" title="enum class in com.grapecity.documents.excel">SubtotalLocationType</a>&nbsp;location)</span></div>
<div class="block">Changes the subtotal location for all existing pivot fields. <p>Changing the subtotal location has an immediate visual effect only for  fields in outline form, but the setting is also applied to fields in tabular  form.</p> <p>If the row axis layout is  <a href="LayoutRowType.html#TabularRow"><code>LayoutRowType.TabularRow</code></a>, the  <code>location</code> must be <a href="SubtotalLocationType.html#Bottom"><code>SubtotalLocationType.Bottom</code></a>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Category", "Amount"},
     {"Beverages", 100},
     {"Snacks", 200},
     {"Beverages", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"));
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 pivotTable.subtotalLocation(SubtotalLocationType.Bottom);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>location</code> - The subtotal location to apply to all existing pivot fields.</dd>
<dt>Throws:</dt>
<dd><code><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the row axis layout is <a href="LayoutRowType.html#TabularRow"><code>LayoutRowType.TabularRow</code></a> and <code>location</code> is not <a href="SubtotalLocationType.html#Bottom"><code>SubtotalLocationType.Bottom</code></a>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="update()">
<h3>update</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">update</span>()</div>
<div class="block">Updates the PivotTable report layout and displayed results. <p>A common use case is to enable  <a href="#setDeferLayoutUpdate(boolean)"><code>setDeferLayoutUpdate(boolean)</code></a>, make multiple  layout changes, and then call this method once to apply them.</p> <p>This method does not refresh the PivotCache from the source data. If the source data  has changed and the PivotCache must be refreshed first, call  <a href="#refresh()"><code>refresh()</code></a> instead.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Category", "Product", "Amount"},
     {"Beverages", "Tea", 100},
     {"Beverages", "Coffee", 200},
     {"Snacks", "Biscuits", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "PivotTable1");
 pivotTable.setDeferLayoutUpdate(true);
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 pivotTable.update();
 </code></pre></div>
</section>
</li>
<li>
<section class="detail" id="getStyle()">
<h3>getStyle</h3>
<div class="member-signature"><span class="return-type"><a href="ITableStyle.html" title="interface in com.grapecity.documents.excel">ITableStyle</a></span>&nbsp;<span class="element-name">getStyle</span>()</div>
<div class="block">Gets the style applied to the pivot table. <p>This method returns the current  <a href="ITableStyle.html" title="interface in com.grapecity.documents.excel"><code>ITableStyle</code></a> associated with the pivot table. If no style has been applied, this method returns  <code>null</code>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Name", "Amount"},
     {"A", 100},
     {"B", 200},
     {"A", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setStyle(workbook.getTableStyles().get("PivotStyleMedium3"));
 ITableStyle style = pivotTable.getStyle();
 String styleName = style.getName();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The style applied to the pivot table.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setStyle(com.grapecity.documents.excel.ITableStyle)">
<h3>setStyle</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setStyle</span><wbr><span class="parameters">(<a href="ITableStyle.html" title="interface in com.grapecity.documents.excel">ITableStyle</a>&nbsp;style)</span></div>
<div class="block">Sets the style applied to the pivot table. <p>This method Sets the current  <a href="ITableStyle.html" title="interface in com.grapecity.documents.excel"><code>ITableStyle</code></a> associated with the pivot table. If no style has been applied, this method Sets  <code>null</code>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Name", "Amount"},
     {"A", 100},
     {"B", 200},
     {"A", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setStyle(workbook.getTableStyles().get("PivotStyleMedium3"));
 String styleName = style.getName();
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>style</code> - The style applied to the pivot table.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPivotFormulas()">
<h3>getPivotFormulas</h3>
<div class="member-signature"><span class="return-type"><a href="IPivotFormulas.html" title="interface in com.grapecity.documents.excel">IPivotFormulas</a></span>&nbsp;<span class="element-name">getPivotFormulas</span>()</div>
<div class="block">Gets the collection of formulas for the specified PivotTable report. <p>Use this method to access the  <a href="IPivotFormulas.html" title="interface in com.grapecity.documents.excel"><code>IPivotFormulas</code></a> collection that contains the custom formulas defined for the PivotTable, such as formulas created by  calculated items.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C4").setValue(new Object[][] {
     {"Product", "Category", "Amount"},
     {"Apple", "Fruit", 120},
     {"Banana", "Fruit", 80},
     {"Bran", "Snack", 60}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.getPivotFields().get("Product").setOrientation(PivotFieldOrientation.RowField);
 pivotTable.getPivotFields().get("Amount").setOrientation(PivotFieldOrientation.DataField);
 pivotTable.getPivotFields().get("Category").setOrientation(PivotFieldOrientation.ColumnField);
 pivotTable.getPivotFields().get("Product").getCalculatedItems().add("TotalFruit", "=Product[Apple] + Product[Banana]");
 IPivotFormulas formulas = pivotTable.getPivotFormulas();
 IPivotFormula formula = formulas.get(0);
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The collection of formulas for the specified PivotTable report.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getAllowMultipleFilters()">
<h3>getAllowMultipleFilters</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getAllowMultipleFilters</span>()</div>
<div class="block">Gets whether pivot fields in the pivot table can have multiple filters applied at the same time. <p>Use this property to determine whether the pivot table allows a single pivot field  to keep more than one filter condition simultaneously.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Category", "Product", "Amount"},
     {"Fruit", "Apple", 120},
     {"Fruit", "Banana", 90},
     {"Drink", "Tea", 60},
     {"Drink", "Coffee", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.setAllowMultipleFilters(true);
 boolean allowMultipleFilters = pivotTable.getAllowMultipleFilters();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if pivot fields in the pivot table can have multiple filters applied at the same time; otherwise, false.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setAllowMultipleFilters(boolean)">
<h3>setAllowMultipleFilters</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setAllowMultipleFilters</span><wbr><span class="parameters">(boolean&nbsp;allowMultipleFilters)</span></div>
<div class="block">Sets whether pivot fields in the pivot table can have multiple filters applied at the same time. <p>Use this property to set whether the pivot table allows a single pivot field to keep more than one filter condition simultaneously.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:C5").setValue(new Object[][] {
     {"Category", "Product", "Amount"},
     {"Fruit", "Apple", 120},
     {"Fruit", "Banana", 90},
     {"Drink", "Tea", 60},
     {"Drink", "Coffee", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:C5"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.setAllowMultipleFilters(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>allowMultipleFilters</code> - Whether pivot fields in the pivot table can have multiple filters applied at the same time.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getHasAutoFormat()">
<h3>getHasAutoFormat</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getHasAutoFormat</span>()</div>
<div class="block">Gets a value indicating whether the PivotTable report automatically fits column widths when it is refreshed. <p>The default value is  <code>true</code>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Product", "Amount"},
     {"Apple", 100},
     {"Orange", 200},
     {"Apple", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 boolean hasAutoFormat = pivotTable.getHasAutoFormat();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the PivotTable report automatically fits column widths when refreshed; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setHasAutoFormat(boolean)">
<h3>setHasAutoFormat</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setHasAutoFormat</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets a value indicating whether the PivotTable report automatically fits column widths when it is refreshed. <p>The default value is  <code>true</code>.</p>
<pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {
     {"Product", "Amount"},
     {"Apple", 100},
     {"Orange", 200},
     {"Apple", 150}
 });
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("E1"), "SalesPivot");
 pivotTable.setHasAutoFormat(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - Whether the PivotTable report automatically fits column widths when it is refreshed.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDisplayFieldCaptions()">
<h3>getDisplayFieldCaptions</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getDisplayFieldCaptions</span>()</div>
<div class="block">Gets whether filter buttons and pivot field captions for rows and columns are displayed in the grid.  Default value is true.
 <pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {{"Category", "Amount"}, {"Fruit", 120}, {"Fruit", 80}, {"Drink", 50}});
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setDisplayFieldCaptions(false);
 boolean displayFieldCaptions = pivotTable.getDisplayFieldCaptions();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>true if filter buttons and pivot field captions for rows and columns are displayed in the grid; otherwise, false.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setDisplayFieldCaptions(boolean)">
<h3>setDisplayFieldCaptions</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setDisplayFieldCaptions</span><wbr><span class="parameters">(boolean&nbsp;displayFieldCaptions)</span></div>
<div class="block">Sets whether filter buttons and pivot field captions for rows and columns are displayed in the grid.
 <pre><code data-language="Java">
 worksheet.getRange("A1:B4").setValue(new Object[][] {{"Category", "Amount"}, {"Fruit", 120}, {"Fruit", 80}, {"Drink", 50}});
 IPivotCache pivotCache = workbook.getPivotCaches().create(worksheet.getRange("A1:B4"));
 IPivotTable pivotTable = worksheet.getPivotTables().add(pivotCache, worksheet.getRange("D1"), "SalesPivot");
 pivotTable.setDisplayFieldCaptions(false);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>displayFieldCaptions</code> - <code>true</code> to display filter buttons and field captions; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
<script>var evenRowColor = "even-row-color";
var oddRowColor = "odd-row-color";
var tableTab = "table-tab";
var activeTableTab = "active-table-tab";

function show(tableId, selected, columns) {
    if (tableId !== selected) {
        document.querySelectorAll('div.' + tableId + ':not(.' + selected + ')')
            .forEach(function (elem) {
                elem.style.display = 'none';
            });
    }
    document.querySelectorAll('div.' + selected)
        .forEach(function (elem, index) {
            elem.style.display = '';
            var isEvenRow = index % (columns * 2) < columns;
            elem.classList.remove(isEvenRow ? oddRowColor : evenRowColor);
            elem.classList.add(isEvenRow ? evenRowColor : oddRowColor);
        });
    updateTabs(tableId, selected);
}

function updateTabs(tableId, selected) {
    document.querySelector('div#' + tableId + ' .summary-table')
        .setAttribute('aria-labelledby', selected);
    document.querySelectorAll('button[id^="' + tableId + '"]')
        .forEach(function (tab, index) {
            if (selected === tab.id || (tableId === selected && index === 0)) {
                tab.className = activeTableTab;
                tab.setAttribute('aria-selected', true);
                tab.setAttribute('tabindex', 0);
            } else {
                tab.className = tableTab;
                tab.setAttribute('aria-selected', false);
                tab.setAttribute('tabindex', -1);
            }
        });
}

function switchTab(e) {
    var selected = document.querySelector('[aria-selected=true]');
    if (selected) {
        if ((e.keyCode === 37 || e.keyCode === 38) && selected.previousSibling) {
            // left or up arrow key pressed: move focus to previous tab
            selected.previousSibling.click();
            selected.previousSibling.focus();
            e.preventDefault();
        } else if ((e.keyCode === 39 || e.keyCode === 40) && selected.nextSibling) {
            // right or down arrow key pressed: move focus to next tab
            selected.nextSibling.click();
            selected.nextSibling.focus();
            e.preventDefault();
        }
    }
}
</script></div>