# IPageSetup

## 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 IPageSetup</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">IPageSetup</span></div>
<div class="block">Represents the page setup description. <p>Provides access to worksheet print and pagination settings, including paper size,  orientation, margins, headers and footers, print area, repeated title rows and columns,  page order, and scaling options used when printing or exporting a worksheet.</p> <p>Use  <a href="IWorksheet.html#getPageSetup()"><code>IWorksheet.getPageSetup()</code></a> to obtain the page setup for a worksheet and configure its printing behavior.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setOrientation(PageOrientation.Landscape);
 pageSetup.setPrintTitleRows("$1:$1");
 pageSetup.setFitToPagesWide(1);
 pageSetup.setFitToPagesTall(0);
 </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>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="#customPaperSize(double,double)">customPaperSize</a><wbr>(double&nbsp;width,
 double&nbsp;height)</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 paper size, in unit of inches.</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="#fromJson(java.lang.String)">fromJson</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;json)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Generates the page setup from the specified JSON string.</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="#getAlignMarginsHeaderFooter()">getAlignMarginsHeaderFooter</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 header and footer are aligned with the margins set in the page setup options.</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="#getBestFitColumns()">getBestFitColumns</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 column widths are adjusted to fit the longest text width for printing.</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="#getBestFitRows()">getBestFitRows</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 row heights are adjusted to fit the tallest text height for printing.</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="#getBlackAndWhite()">getBlackAndWhite</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 elements of the document will be printed in black and white.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>double</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="#getBottomMargin()">getBottomMargin</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 size of the bottom margin, in points.</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="#getCenterFooter()">getCenterFooter</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 text in the center footer section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IGraphic.html" title="interface in com.grapecity.documents.excel">IGraphic</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="#getCenterFooterPicture()">getCenterFooterPicture</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 a  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the center section of the footer.</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="#getCenterHeader()">getCenterHeader</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 text in the center header section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IGraphic.html" title="interface in com.grapecity.documents.excel">IGraphic</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="#getCenterHeaderPicture()">getCenterHeaderPicture</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 a  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the center section of the header.</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="#getCenterHorizontally()">getCenterHorizontally</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 sheet is centered horizontally on the page when it's printed.</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="#getCenterVertically()">getCenterVertically</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 sheet is centered vertically on the page when it's printed.</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="#getDifferentFirstPageHeaderFooter()">getDifferentFirstPageHeaderFooter</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 a different header or footer is used on the first page.</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="#getDraft()">getDraft</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 sheet will be printed without graphics.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IPage.html" title="interface in com.grapecity.documents.excel">IPage</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="#getEvenPage()">getEvenPage</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 alignment of text on the even  <a href="IPage.html" title="interface in com.grapecity.documents.excel"><code>IPage</code></a> of a workbook or section.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IPage.html" title="interface in com.grapecity.documents.excel">IPage</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="#getFirstPage()">getFirstPage</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 alignment of text on the first  <a href="IPage.html" title="interface in com.grapecity.documents.excel"><code>IPage</code></a> of a workbook or section.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</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="#getFirstPageNumber()">getFirstPageNumber</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 first page number that will be used when this sheet is printed.</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="#getFitToPagesTall()">getFitToPagesTall</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 pages tall the worksheet will be scaled to when it's  printed.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</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="#getFitToPagesWide()">getFitToPagesWide</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 number of pages wide the worksheet will be scaled to when it's  printed.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>double</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="#getFooterMargin()">getFooterMargin</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 size of the footer margin, in points.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>double</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="#getHeaderMargin()">getHeaderMargin</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 size of the header margin, in points.</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="#getIsAutoFirstPageNumber()">getIsAutoFirstPageNumber</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 first page number is automatically assigned.</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="#getIsPercentScale()">getIsPercentScale</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 worksheet is scaled as a percentage.</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="#getLeftFooter()">getLeftFooter</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 in the left footer section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IGraphic.html" title="interface in com.grapecity.documents.excel">IGraphic</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="#getLeftFooterPicture()">getLeftFooterPicture</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  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the left section of the footer.</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="#getLeftHeader()">getLeftHeader</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 in the left header section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IGraphic.html" title="interface in com.grapecity.documents.excel">IGraphic</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="#getLeftHeaderPicture()">getLeftHeaderPicture</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  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the left section of the header.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>double</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="#getLeftMargin()">getLeftMargin</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 size of the left margin, in points.</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="#getOddAndEvenPagesHeaderFooter()">getOddAndEvenPagesHeaderFooter</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 PageSetup object has different headers and footers for  odd-numbered and even-numbered pages.</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="#getOrder()">getOrder</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 a  <a href="Order.html" title="enum class in com.grapecity.documents.excel"><code>Order</code></a> value that represents the order used to number pages when printing a large worksheet.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="PageOrientation.html" title="enum class in com.grapecity.documents.excel">PageOrientation</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="#getOrientation()">getOrientation</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  <a href="PageOrientation.html" title="enum class in com.grapecity.documents.excel"><code>PageOrientation</code></a> value that represents the portrait or landscape printing mode.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>double</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="#getPaperHeight()">getPaperHeight</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 height in inches of the paper, considering page orientation.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="PaperSize.html" title="enum class in com.grapecity.documents.excel">PaperSize</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="#getPaperSize()">getPaperSize</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 size of the paper.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>double</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="#getPaperWidth()">getPaperWidth</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 width in inches of the paper, considered page orientation.</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="#getPrintArea()">getPrintArea</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 to be printed, as a string using A1-style references in the  language of the macro.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="PrintLocation.html" title="enum class in com.grapecity.documents.excel">PrintLocation</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="#getPrintComments()">getPrintComments</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 way comments are printed with the sheet.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</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="#getPrintCopies()">getPrintCopies</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 number of copies to print.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="PrintErrors.html" title="enum class in com.grapecity.documents.excel">PrintErrors</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="#getPrintErrors()">getPrintErrors</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 a  <a href="PrintErrors.html" title="enum class in com.grapecity.documents.excel"><code>PrintErrors</code></a> constant specifying how cell error values are displayed when the worksheet is printed.</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="#getPrintGridlines()">getPrintGridlines</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 cell gridlines are printed on the page.</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="#getPrintHeadings()">getPrintHeadings</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 row and column headings are printed with this page.</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="#getPrintNotes()">getPrintNotes</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 cell notes are printed as end notes with the sheet.</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="#getPrintPageRange()">getPrintPageRange</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 of pages to print, where page numbers or page ranges are separated by commas and counted from the beginning of the document.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="PrintQuality.html" title="enum class in com.grapecity.documents.excel">PrintQuality</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="#getPrintQuality()">getPrintQuality</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  <a href="PrintQuality.html" title="enum class in com.grapecity.documents.excel"><code>PrintQuality</code></a> value that represents the print quality of this page.</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="#getPrintTailColumns()">getPrintTailColumns</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 columns that contain the cells to be repeated on the right side of  each page, as a string in A1-style notation in the language of the macro.</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="#getPrintTailRows()">getPrintTailRows</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 rows that contain the cells to be repeated on the bottom of  each page, as a string in A1-style notation in the language of the macro.</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="#getPrintTitleColumns()">getPrintTitleColumns</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 columns that contain the cells to be repeated on the left side of  each page, as a string in A1-style notation in the language of the macro.</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="#getPrintTitleRows()">getPrintTitleRows</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 rows that contain the cells to be repeated at the top of each  page, as a string in A1-style notation in the language of the macro.</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="#getRightFooter()">getRightFooter</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 in the right footer section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IGraphic.html" title="interface in com.grapecity.documents.excel">IGraphic</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="#getRightFooterPicture()">getRightFooterPicture</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  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the right section of the footer.</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="#getRightHeader()">getRightHeader</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 in the right header section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IGraphic.html" title="interface in com.grapecity.documents.excel">IGraphic</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="#getRightHeaderPicture()">getRightHeaderPicture</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  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the right section of the header.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>double</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="#getRightMargin()">getRightMargin</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 size of the right margin, in points.</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="#getScaleWithDocHeaderFooter()">getScaleWithDocHeaderFooter</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 header and footer are scaled with the document when the document size changes.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>double</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="#getTopMargin()">getTopMargin</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 size of the top margin, in points.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>int</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="#getZoom()">getZoom</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 Variant value that represents a percentage (between 10 and 400 percent) by which Document Solutions for Excel will scale the worksheet for printing.</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="#setAlignMarginsHeaderFooter(boolean)">setAlignMarginsHeaderFooter</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 header and footer are aligned with the margins set in the page setup options.</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="#setBestFitColumns(boolean)">setBestFitColumns</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 widths are adjusted to fit the longest text width for printing.</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="#setBestFitRows(boolean)">setBestFitRows</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 heights are adjusted to fit the tallest text height for printing.</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="#setBlackAndWhite(boolean)">setBlackAndWhite</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 elements of the document will be printed in black and white.</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="#setBottomMargin(double)">setBottomMargin</a><wbr>(double&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 size of the bottom margin, in points.</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="#setCenterFooter(java.lang.String)">setCenterFooter</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 center footer text in the PageSetup object.</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="#setCenterHeader(java.lang.String)">setCenterHeader</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 text in the center header section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.</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="#setCenterHorizontally(boolean)">setCenterHorizontally</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 sheet is centered horizontally on the page when it's printed.</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="#setCenterVertically(boolean)">setCenterVertically</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 sheet is centered vertically on the page when it's printed.</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="#setDifferentFirstPageHeaderFooter(boolean)">setDifferentFirstPageHeaderFooter</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 a different header or footer is used on the first page.</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="#setDraft(boolean)">setDraft</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 sheet will be printed without graphics.</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="#setFirstPageNumber(int)">setFirstPageNumber</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 first page number that will be used when this sheet is printed.</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="#setFitToPagesTall(int)">setFitToPagesTall</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 pages tall the worksheet will be scaled to when it's  printed.</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="#setFitToPagesWide(int)">setFitToPagesWide</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 number of pages wide the worksheet will be scaled to when it's  printed.</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="#setFooterMargin(double)">setFooterMargin</a><wbr>(double&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 size of the footer margin, in points.</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="#setHeaderMargin(double)">setHeaderMargin</a><wbr>(double&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 size of the header margin, in points.</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="#setIsAutoFirstPageNumber(boolean)">setIsAutoFirstPageNumber</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 first page number is automatically assigned.</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="#setIsPercentScale(boolean)">setIsPercentScale</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 worksheet is scaled as a percentage.</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="#setLeftFooter(java.lang.String)">setLeftFooter</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 text in the left footer section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.</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="#setLeftHeader(java.lang.String)">setLeftHeader</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 alignment of text on the left header of a workbook or section.</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="#setLeftMargin(double)">setLeftMargin</a><wbr>(double&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 size of the left margin, in points.</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="#setOddAndEvenPagesHeaderFooter(boolean)">setOddAndEvenPagesHeaderFooter</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 specified PageSetup object has different headers and footers for  odd-numbered and even-numbered pages.</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="#setOrder(com.grapecity.documents.excel.Order)">setOrder</a><wbr>(<a href="Order.html" title="enum class in com.grapecity.documents.excel">Order</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 a  <a href="Order.html" title="enum class in com.grapecity.documents.excel"><code>Order</code></a> value that represents the order used to number pages when printing a large worksheet.</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="#setOrientation(com.grapecity.documents.excel.PageOrientation)">setOrientation</a><wbr>(<a href="PageOrientation.html" title="enum class in com.grapecity.documents.excel">PageOrientation</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 a  <a href="PageOrientation.html" title="enum class in com.grapecity.documents.excel"><code>PageOrientation</code></a> value that represents the portrait or landscape printing mode.</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="#setPaperSize(com.grapecity.documents.excel.PaperSize)">setPaperSize</a><wbr>(<a href="PaperSize.html" title="enum class in com.grapecity.documents.excel">PaperSize</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 size of the paper.</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="#setPrintArea(java.lang.String)">setPrintArea</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 range to be printed, as a string using A1-style references in the  language of the macro.</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="#setPrintComments(com.grapecity.documents.excel.PrintLocation)">setPrintComments</a><wbr>(<a href="PrintLocation.html" title="enum class in com.grapecity.documents.excel">PrintLocation</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 way comments are printed with the sheet.</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="#setPrintCopies(int)">setPrintCopies</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 number of copies to print.</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="#setPrintErrors(com.grapecity.documents.excel.PrintErrors)">setPrintErrors</a><wbr>(<a href="PrintErrors.html" title="enum class in com.grapecity.documents.excel">PrintErrors</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 a  <a href="PrintErrors.html" title="enum class in com.grapecity.documents.excel"><code>PrintErrors</code></a> constant specifying how print errors are displayed.</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="#setPrintGridlines(boolean)">setPrintGridlines</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 cell gridlines are printed on the page.</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="#setPrintHeadings(boolean)">setPrintHeadings</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 and column headings are printed with this page.</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="#setPrintNotes(boolean)">setPrintNotes</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 cell notes are printed as end notes with the sheet.</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="#setPrintPageRange(java.lang.String)">setPrintPageRange</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 range of pages to print, where page numbers or page ranges are separated by commas and counted from the beginning of the document.</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="#setPrintQuality(com.grapecity.documents.excel.PrintQuality)">setPrintQuality</a><wbr>(<a href="PrintQuality.html" title="enum class in com.grapecity.documents.excel">PrintQuality</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  <a href="PrintQuality.html" title="enum class in com.grapecity.documents.excel"><code>PrintQuality</code></a> value that represents the print quality of this page.</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="#setPrintTailColumns(java.lang.String)">setPrintTailColumns</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 columns that contain the cells to be repeated on the right side of  each page, as a string in A1-style notation in the language of the macro.</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="#setPrintTailRows(java.lang.String)">setPrintTailRows</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 rows that contain the cells to be repeated on the bottom of  each page, as a string in A1-style notation in the language of the macro.</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="#setPrintTitleColumns(java.lang.String)">setPrintTitleColumns</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 columns that contain the cells to be repeated on the left side of  each page, as a string in A1-style notation in the language of the macro.</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="#setPrintTitleRows(java.lang.String)">setPrintTitleRows</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 rows that contain the cells to be repeated at the top of each  page, as a string in A1-style notation in the language of the macro.</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="#setRightFooter(java.lang.String)">setRightFooter</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 text in the right footer section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.</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="#setRightHeader(java.lang.String)">setRightHeader</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 right part of the header.</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="#setRightMargin(double)">setRightMargin</a><wbr>(double&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 size of the right margin, in points.</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="#setScaleWithDocHeaderFooter(boolean)">setScaleWithDocHeaderFooter</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 header and footer are scaled with the document when the document size changes.</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="#setTopMargin(double)">setTopMargin</a><wbr>(double&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 size of the top margin, in points.</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="#setZoom(int)">setZoom</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 a Variant value that represents a percentage (between 10 and 400 percent) by which Document Solutions for Excel will scale the worksheet for printing.</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="#toJson()">toJson</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Generates a JSON string from the page setup.</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="getPrintQuality()">
<h3>getPrintQuality</h3>
<div class="member-signature"><span class="return-type"><a href="PrintQuality.html" title="enum class in com.grapecity.documents.excel">PrintQuality</a></span>&nbsp;<span class="element-name">getPrintQuality</span>()</div>
<div class="block">Gets a  <a href="PrintQuality.html" title="enum class in com.grapecity.documents.excel"><code>PrintQuality</code></a> value that represents the print quality of this page. Default is 600 dpi. <p>Use this property to determine the current page print resolution that  will be applied when the worksheet is printed.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintQuality(PrintQuality.Dpi144);
 PrintQuality printQuality = pageSetup.getPrintQuality();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The <a href="PrintQuality.html" title="enum class in com.grapecity.documents.excel"><code>PrintQuality</code></a> value for this page. The default value is <a href="PrintQuality.html#Dpi600"><code>PrintQuality.Dpi600</code></a>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPrintQuality(com.grapecity.documents.excel.PrintQuality)">
<h3>setPrintQuality</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPrintQuality</span><wbr><span class="parameters">(<a href="PrintQuality.html" title="enum class in com.grapecity.documents.excel">PrintQuality</a>&nbsp;value)</span></div>
<div class="block">Sets the  <a href="PrintQuality.html" title="enum class in com.grapecity.documents.excel"><code>PrintQuality</code></a> value that represents the print quality of this page. <p>Default is 600 dpi.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintQuality(PrintQuality.Dpi144);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The <a href="PrintQuality.html" title="enum class in com.grapecity.documents.excel"><code>PrintQuality</code></a> value that represents the print quality of this page.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getBlackAndWhite()">
<h3>getBlackAndWhite</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getBlackAndWhite</span>()</div>
<div class="block">Gets whether elements of the document will be printed in black and white.
 <pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setBlackAndWhite(true);
 boolean blackAndWhite = pageSetup.getBlackAndWhite();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if elements of the document will be printed in black and white; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setBlackAndWhite(boolean)">
<h3>setBlackAndWhite</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setBlackAndWhite</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether elements of the document will be printed in black and white.
 <pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setBlackAndWhite(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> if elements of the document will be printed in black and white; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getLeftMargin()">
<h3>getLeftMargin</h3>
<div class="member-signature"><span class="return-type">double</span>&nbsp;<span class="element-name">getLeftMargin</span>()</div>
<div class="block">Gets the size of the left margin, in points. <p>This value specifies the left page margin used for printing and can be configured with  <a href="#setLeftMargin(double)"><code>setLeftMargin(double)</code></a>.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setLeftMargin(36);
 double leftMargin = pageSetup.getLeftMargin();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The size of the left margin, in points.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setLeftMargin(double)">
<h3>setLeftMargin</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setLeftMargin</span><wbr><span class="parameters">(double&nbsp;value)</span></div>
<div class="block">Sets the size of the left margin, in points.
 <pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setLeftMargin(36);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The size of the left margin, in points.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getRightMargin()">
<h3>getRightMargin</h3>
<div class="member-signature"><span class="return-type">double</span>&nbsp;<span class="element-name">getRightMargin</span>()</div>
<div class="block">Gets the size of the right margin, in points. <p>This value specifies the right page margin used for printing and can be configured with  <a href="#setRightMargin(double)"><code>setRightMargin(double)</code></a>.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setRightMargin(36);
 double rightMargin = pageSetup.getRightMargin();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The size of the right margin, in points.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setRightMargin(double)">
<h3>setRightMargin</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setRightMargin</span><wbr><span class="parameters">(double&nbsp;value)</span></div>
<div class="block">Sets the size of the right margin, in points.
 <pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setRightMargin(36);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The size of the right margin, in points.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getTopMargin()">
<h3>getTopMargin</h3>
<div class="member-signature"><span class="return-type">double</span>&nbsp;<span class="element-name">getTopMargin</span>()</div>
<div class="block">Gets the size of the top margin, in points. <p>This value specifies the top page margin used for printing and can be configured with  <a href="#setTopMargin(double)"><code>setTopMargin(double)</code></a>.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setTopMargin(36);
 double topMargin = pageSetup.getTopMargin();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The size of the top margin, in points.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setTopMargin(double)">
<h3>setTopMargin</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setTopMargin</span><wbr><span class="parameters">(double&nbsp;value)</span></div>
<div class="block">Sets the size of the top margin, in points.
 <pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setTopMargin(36);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The size of the top margin, in points.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getBottomMargin()">
<h3>getBottomMargin</h3>
<div class="member-signature"><span class="return-type">double</span>&nbsp;<span class="element-name">getBottomMargin</span>()</div>
<div class="block">Gets the size of the bottom margin, in points. <p>This value specifies the bottom page margin used for printing and can be configured with  <a href="#setBottomMargin(double)"><code>setBottomMargin(double)</code></a>.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setBottomMargin(36);
 double bottomMargin = pageSetup.getBottomMargin();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The size of the bottom margin, in points.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setBottomMargin(double)">
<h3>setBottomMargin</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setBottomMargin</span><wbr><span class="parameters">(double&nbsp;value)</span></div>
<div class="block">Sets the size of the bottom margin, in points.
 <pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setBottomMargin(36);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The size of the bottom margin, in points.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getHeaderMargin()">
<h3>getHeaderMargin</h3>
<div class="member-signature"><span class="return-type">double</span>&nbsp;<span class="element-name">getHeaderMargin</span>()</div>
<div class="block">Gets the size of the header margin, in points. <p>Use this method to retrieve the current header margin configured in the page setup for printing.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setHeaderMargin(18);
 double headerMargin = pageSetup.getHeaderMargin();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The size of the header margin, in points.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setHeaderMargin(double)">
<h3>setHeaderMargin</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setHeaderMargin</span><wbr><span class="parameters">(double&nbsp;value)</span></div>
<div class="block">Sets the size of the header margin, in points. <p>Use this method to set the header margin configured in the page setup for printing.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setHeaderMargin(18);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The size of the header margin, in points.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getFooterMargin()">
<h3>getFooterMargin</h3>
<div class="member-signature"><span class="return-type">double</span>&nbsp;<span class="element-name">getFooterMargin</span>()</div>
<div class="block">Gets the size of the footer margin, in points. <p>Use this method to retrieve the current distance configured for the footer  margin in the page setup.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setFooterMargin(93.6);
 double footerMargin = pageSetup.getFooterMargin();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The size of the footer margin, in points.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setFooterMargin(double)">
<h3>setFooterMargin</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setFooterMargin</span><wbr><span class="parameters">(double&nbsp;value)</span></div>
<div class="block">Sets the size of the footer margin, in points. <p>Use this method to set the distance configured for the footer margin in the page setup.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setFooterMargin(93.6);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The size of the footer margin, in points.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getCenterFooter()">
<h3>getCenterFooter</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">getCenterFooter</span>()</div>
<div class="block">Gets the text in the center footer section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.<p>The returned string specifies the content printed in the center section of  the footer. It can include header and footer codes such as page number  placeholders.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setCenterFooter("Page &amp;P of &amp;N");
 String centerFooter = pageSetup.getCenterFooter();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The text in the center footer section. Returns an empty string if no center footer text is set.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setCenterFooter(java.lang.String)">
<h3>setCenterFooter</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setCenterFooter</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 center footer text in the PageSetup object. <p>The returned string specifies the content printed in the center section of the footer.  It can include header and footer codes such as page number placeholders that are supported  by page setup footer text.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setCenterFooter("Page &amp;P of &amp;N");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The center footer text. Sets an empty string if no center footer text is set.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getCenterHeader()">
<h3>getCenterHeader</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">getCenterHeader</span>()</div>
<div class="block">Gets the text in the center header section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.<p>Use this property to retrieve the centered header content for the worksheet's page setup.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setCenterHeader("Quarterly Report");
 String centerHeader = pageSetup.getCenterHeader();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The text in the center header section. Returns an empty string if no center header text is set.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setCenterHeader(java.lang.String)">
<h3>setCenterHeader</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setCenterHeader</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 in the center header section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.<p>Use this property to set the centered header content for the worksheet's page setup.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setCenterHeader("Quarterly Report");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The text in the center header section. Sets an empty string if no center header text is set.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getLeftFooter()">
<h3>getLeftFooter</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">getLeftFooter</span>()</div>
<div class="block">Gets the text in the left footer section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.<p>The returned string represents the current left footer content configured  in the page setup. It can include header and footer formatting codes.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setLeftFooter("&amp;\"Arial,Italic\"Confidential");
 String leftFooter = pageSetup.getLeftFooter();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The text in the left footer section. Returns an empty string if no left footer text is set.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setLeftFooter(java.lang.String)">
<h3>setLeftFooter</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setLeftFooter</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 in the left footer section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.<p>Use this method to configure the left footer content for the worksheet's  page setup. The value can include header and footer formatting codes, such as  page-number placeholders or formatting instructions.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setLeftFooter("&amp;\"Arial,Italic\"Confidential");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The text to set in the left footer section. Set an empty string if no left footer text is needed.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getLeftHeader()">
<h3>getLeftHeader</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">getLeftHeader</span>()</div>
<div class="block">Gets the text in the left header section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.<p>The returned string represents the current left header content configured  in the page setup. It can include header text and any header codes that were  set for printing.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setLeftHeader("&amp;\"Arial,Italic\"Sales Report");
 String leftHeader = pageSetup.getLeftHeader();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The text in the left header section. Returns an empty string if no left header text is set.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setLeftHeader(java.lang.String)">
<h3>setLeftHeader</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setLeftHeader</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 alignment of text on the left header of a workbook or section. <p>Sets the string configured for the left header when the worksheet is printed.  The returned value can include header text and any header codes that were set for  printing.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setLeftHeader("&amp;\"Arial,Italic\"Sales Report");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The left header string for the page setup.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getRightFooter()">
<h3>getRightFooter</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">getRightFooter</span>()</div>
<div class="block">Gets the text in the right footer section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.<p>The returned string represents the footer content configured for the right  section of the page footer, including any supported header or footer  formatting codes.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setRightFooter("&amp;D");
 String rightFooter = pageSetup.getRightFooter();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The text in the right footer section. Returns an empty string if no right footer text is set.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setRightFooter(java.lang.String)">
<h3>setRightFooter</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setRightFooter</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 in the right footer section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.<p>Use this method to configure the right footer content for the worksheet's  page setup. The value can include header and footer formatting codes, such as  page-number placeholders or formatting instructions.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setRightFooter("&amp;D");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The text to set in the right footer section. Set an empty string if no right footer text is needed.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getRightHeader()">
<h3>getRightHeader</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">getRightHeader</span>()</div>
<div class="block">Gets the text in the right header section of the  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> object.<p>Use this method to retrieve the text displayed in the right section of the  page header.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setRightHeader("Page &amp;[Page]");
 String rightHeader = pageSetup.getRightHeader();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The text in the right header section. Returns an empty string if no right header text is set.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setRightHeader(java.lang.String)">
<h3>setRightHeader</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setRightHeader</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 right part of the header. <p>Sets the text displayed in the right section of the page header.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setRightHeader("Page &amp;[Page]");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The text in the right section of the page header. Sets an empty string if the right header is not set.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getCenterHorizontally()">
<h3>getCenterHorizontally</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getCenterHorizontally</span>()</div>
<div class="block">Gets whether the sheet is centered horizontally on the page when it's printed. <p>This property indicates whether the worksheet content is horizontally centered  within the printable page area during printing.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setCenterHorizontally(true);
 boolean centerHorizontally = pageSetup.getCenterHorizontally();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the sheet is centered horizontally on the page when printed; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setCenterHorizontally(boolean)">
<h3>setCenterHorizontally</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setCenterHorizontally</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the sheet is centered horizontally on the page when it's printed. <p>This property indicates whether the worksheet content is horizontally centered  within the printable page area during printing.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setCenterHorizontally(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> if the sheet is centered horizontally on the page when printed; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getCenterVertically()">
<h3>getCenterVertically</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getCenterVertically</span>()</div>
<div class="block">Gets whether the sheet is centered vertically on the page when it's printed. <p>This property indicates whether the worksheet content is vertically centered  within the printable page area during printing.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setCenterVertically(true);
 boolean centerVertically = pageSetup.getCenterVertically();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the sheet is centered vertically on the printed page; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setCenterVertically(boolean)">
<h3>setCenterVertically</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setCenterVertically</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the sheet is centered vertically on the page when it's printed. <p>This property indicates whether the worksheet content is vertically centered  within the printable page area during printing.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setCenterVertically(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> if the sheet is centered vertically on the printed page; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getOddAndEvenPagesHeaderFooter()">
<h3>getOddAndEvenPagesHeaderFooter</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getOddAndEvenPagesHeaderFooter</span>()</div>
<div class="block">Gets whether the specified PageSetup object has different headers and footers for  odd-numbered and even-numbered pages. <p>When this property is  <code>true</code>, the worksheet can use separate header and footer  settings for even pages, such as those exposed through  <a href="#getEvenPage()"><code>getEvenPage()</code></a>.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setOddAndEvenPagesHeaderFooter(true);
 boolean oddAndEvenPagesHeaderFooter = pageSetup.getOddAndEvenPagesHeaderFooter();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if different headers and footers are used for odd-numbered and even-numbered pages; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setOddAndEvenPagesHeaderFooter(boolean)">
<h3>setOddAndEvenPagesHeaderFooter</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setOddAndEvenPagesHeaderFooter</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the specified PageSetup object has different headers and footers for  odd-numbered and even-numbered pages. <p>When this property is  <code>true</code>, the worksheet can use separate header and footer  settings for even pages, such as those exposed through  <a href="#getEvenPage()"><code>getEvenPage()</code></a>.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setOddAndEvenPagesHeaderFooter(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> if different headers and footers are used for odd-numbered and even-numbered pages; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDifferentFirstPageHeaderFooter()">
<h3>getDifferentFirstPageHeaderFooter</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getDifferentFirstPageHeaderFooter</span>()</div>
<div class="block">Gets whether a different header or footer is used on the first page. <p>When this property is  <code>true</code>, the first page can use its own header and footer  settings instead of the default page header and footer. Use  <a href="#setDifferentFirstPageHeaderFooter(boolean)"><code>setDifferentFirstPageHeaderFooter(boolean)</code></a> to enable this behavior before configuring the first page through  <a href="#getFirstPage()"><code>getFirstPage()</code></a>.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setDifferentFirstPageHeaderFooter(true);
 pageSetup.getFirstPage().getCenterHeader().setText("Cover Page");
 boolean differentFirstPageHeaderFooter = pageSetup.getDifferentFirstPageHeaderFooter();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if a different header or footer is used on the first page; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setDifferentFirstPageHeaderFooter(boolean)">
<h3>setDifferentFirstPageHeaderFooter</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setDifferentFirstPageHeaderFooter</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether a different header or footer is used on the first page.
 <pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setDifferentFirstPageHeaderFooter(true);
 pageSetup.getFirstPage().getCenterHeader().setText("Cover Page");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> if a different header or footer is used on the first page; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getScaleWithDocHeaderFooter()">
<h3>getScaleWithDocHeaderFooter</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getScaleWithDocHeaderFooter</span>()</div>
<div class="block">Gets whether the header and footer are scaled with the document when the document size changes. <p>This setting affects whether header and footer content follows the document scaling applied during printing.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setScaleWithDocHeaderFooter(true);
 boolean scaleWithDocHeaderFooter = pageSetup.getScaleWithDocHeaderFooter();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the header and footer are scaled with the document when the document size changes; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setScaleWithDocHeaderFooter(boolean)">
<h3>setScaleWithDocHeaderFooter</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setScaleWithDocHeaderFooter</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the header and footer are scaled with the document when the document size changes. <p>This setting affects whether header and footer content follows the document scaling applied during printing.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setScaleWithDocHeaderFooter(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> if the header and footer are scaled with the document when the document size changes; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getAlignMarginsHeaderFooter()">
<h3>getAlignMarginsHeaderFooter</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getAlignMarginsHeaderFooter</span>()</div>
<div class="block">Gets whether the header and footer are aligned with the margins set in the page setup options. <p>When this property is  <code>true</code>, the header and footer use the page margins  defined in the current  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> settings for alignment when the worksheet is printed.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setAlignMarginsHeaderFooter(true);
 boolean alignMarginsHeaderFooter = pageSetup.getAlignMarginsHeaderFooter();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the header and footer are aligned with the margins set in the page setup options; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setAlignMarginsHeaderFooter(boolean)">
<h3>setAlignMarginsHeaderFooter</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setAlignMarginsHeaderFooter</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the header and footer are aligned with the margins set in the page setup options. <p>When this property is  <code>true</code>, the header and footer use the page margins  defined in the current  <a href="IPageSetup.html" title="interface in com.grapecity.documents.excel"><code>IPageSetup</code></a> settings for alignment when the worksheet is printed.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setAlignMarginsHeaderFooter(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> if the header and footer are aligned with the margins set in the page setup options; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getDraft()">
<h3>getDraft</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getDraft</span>()</div>
<div class="block">Gets whether the sheet will be printed without graphics. <p>When this property returns  <code>true</code>, the worksheet is printed in draft mode.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setDraft(true);
 boolean draft = pageSetup.getDraft();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the sheet is printed without graphics; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setDraft(boolean)">
<h3>setDraft</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setDraft</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the sheet will be printed without graphics. <p>When this property Sets  <code>true</code>, the worksheet is printed in draft mode.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setDraft(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> if the sheet is printed without graphics; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getFirstPageNumber()">
<h3>getFirstPageNumber</h3>
<div class="member-signature"><span class="return-type">int</span>&nbsp;<span class="element-name">getFirstPageNumber</span>()</div>
<div class="block">Gets the first page number that will be used when this sheet is printed. <p>If Automatic, Document Solutions for Excel chooses the first page number. The default is  Automatic.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setIsAutoFirstPageNumber(false);
 pageSetup.setFirstPageNumber(3);
 int firstPageNumber = pageSetup.getFirstPageNumber();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The first page number to use when this sheet is printed. If automatic page numbering is enabled, Document Solutions for Excel chooses the first page number.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setFirstPageNumber(int)">
<h3>setFirstPageNumber</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setFirstPageNumber</span><wbr><span class="parameters">(int&nbsp;value)</span></div>
<div class="block">Sets the first page number that will be used when this sheet is printed. <p>If Automatic, Document Solutions for Excel chooses the first page number. The default is  Automatic.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setIsAutoFirstPageNumber(false);
 pageSetup.setFirstPageNumber(3);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The first page number to use when this sheet is printed. If automatic page numbering is enabled, Document Solutions for Excel chooses the first page number.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getIsAutoFirstPageNumber()">
<h3>getIsAutoFirstPageNumber</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getIsAutoFirstPageNumber</span>()</div>
<div class="block">Gets whether the first page number is automatically assigned. <p>The default value is  <code>true</code>. When the first page number is specified,  this method returns  <code>false</code>.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setFirstPageNumber(3);
 boolean isAutoFirstPageNumber = pageSetup.getIsAutoFirstPageNumber();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the first page number is assigned automatically; <code>false</code> if a specific first page number has been specified.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setIsAutoFirstPageNumber(boolean)">
<h3>setIsAutoFirstPageNumber</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setIsAutoFirstPageNumber</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the first page number is automatically assigned. <p>The default value is  <code>true</code>. When the first page number is specified,  this method Sets  <code>false</code>.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setFirstPageNumber(3);
 pageSetup.setIsAutoFirstPageNumber(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> if the first page number is assigned automatically; <code>false</code> if a specific first page number has been specified.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getFitToPagesTall()">
<h3>getFitToPagesTall</h3>
<div class="member-signature"><span class="return-type">int</span>&nbsp;<span class="element-name">getFitToPagesTall</span>()</div>
<div class="block">Gets the number of pages tall the worksheet will be scaled to when it's  printed. Applies only to worksheets. <p>This setting is used when worksheet scaling is controlled by  <a href="#setIsPercentScale(boolean)"><code>setIsPercentScale(boolean)</code></a> instead of a zoom percentage.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setIsPercentScale(false);
 pageSetup.setFitToPagesTall(2);
 int pagesTall = pageSetup.getFitToPagesTall();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The number of pages tall the worksheet will be scaled to when printed.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setFitToPagesTall(int)">
<h3>setFitToPagesTall</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setFitToPagesTall</span><wbr><span class="parameters">(int&nbsp;value)</span></div>
<div class="block">Sets the number of pages tall the worksheet will be scaled to when it's  printed. Applies only to worksheets. <p>This setting is used when worksheet scaling is controlled by  <a href="#setIsPercentScale(boolean)"><code>setIsPercentScale(boolean)</code></a> instead of a zoom percentage.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setIsPercentScale(false);
 pageSetup.setFitToPagesTall(2);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The number of pages tall the worksheet will be scaled to when printed.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getFitToPagesWide()">
<h3>getFitToPagesWide</h3>
<div class="member-signature"><span class="return-type">int</span>&nbsp;<span class="element-name">getFitToPagesWide</span>()</div>
<div class="block">Gets the number of pages wide the worksheet will be scaled to when it's  printed. Applies only to worksheets. <p>This value specifies the maximum number of pages for horizontal pagination.  When  <a href="#getIsPercentScale()"><code>getIsPercentScale()</code></a> returns <code>false</code>, the worksheet uses  <a href="#getFitToPagesWide()"><code>getFitToPagesWide()</code></a> together with <a href="#getFitToPagesTall()"><code>getFitToPagesTall()</code></a> to control fit-to-page scaling.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setIsPercentScale(false);
 pageSetup.setFitToPagesWide(3);
 int pagesWide = pageSetup.getFitToPagesWide();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The number of pages wide the worksheet will be scaled to when printed.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setFitToPagesWide(int)">
<h3>setFitToPagesWide</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setFitToPagesWide</span><wbr><span class="parameters">(int&nbsp;value)</span></div>
<div class="block">Sets the number of pages wide the worksheet will be scaled to when it's  printed. Applies only to worksheets. <p>This value specifies the maximum number of pages for horizontal pagination.  When  <a href="#getIsPercentScale()"><code>getIsPercentScale()</code></a> Sets <code>false</code>, the worksheet uses  <a href="#getFitToPagesWide()"><code>getFitToPagesWide()</code></a> together with <a href="#getFitToPagesTall()"><code>getFitToPagesTall()</code></a> to control fit-to-page scaling.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setIsPercentScale(false);
 pageSetup.setFitToPagesWide(3);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The number of pages wide the worksheet will be scaled to when printed.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getIsPercentScale()">
<h3>getIsPercentScale</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getIsPercentScale</span>()</div>
<div class="block">Gets whether the worksheet is scaled as a percentage. <p>If this property is  <code>true</code>, the worksheet uses percentage-based scaling.  If this property is  <code>false</code>, the  <a href="#getFitToPagesWide()"><code>getFitToPagesWide()</code></a> and <a href="#getFitToPagesTall()"><code>getFitToPagesTall()</code></a> settings control how the worksheet is scaled.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setIsPercentScale(true);
 boolean isPercentScale = pageSetup.getIsPercentScale();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the worksheet is scaled as a percentage; <code>false</code> if <a href="#getFitToPagesWide()"><code>getFitToPagesWide()</code></a> and <a href="#getFitToPagesTall()"><code>getFitToPagesTall()</code></a> control how the worksheet is scaled.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setIsPercentScale(boolean)">
<h3>setIsPercentScale</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setIsPercentScale</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the worksheet is scaled as a percentage. <p>If this property is  <code>true</code>, the worksheet uses percentage-based scaling.  If this property is  <code>false</code>, the  <a href="#getFitToPagesWide()"><code>getFitToPagesWide()</code></a> and <a href="#getFitToPagesTall()"><code>getFitToPagesTall()</code></a> settings control how the worksheet is scaled.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setIsPercentScale(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - If this property is true, the worksheet is scaled as a percentage; <a href="#getFitToPagesWide()"><code>getFitToPagesWide()</code></a> and <a href="#getFitToPagesTall()"><code>getFitToPagesTall()</code></a> control how the worksheet is scaled.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getOrder()">
<h3>getOrder</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">getOrder</span>()</div>
<div class="block">Gets a  <a href="Order.html" title="enum class in com.grapecity.documents.excel"><code>Order</code></a> value that represents the order used to number pages when printing a large worksheet.<p>This property determines whether pages are numbered down the rows before moving across columns, or across columns before moving down the rows.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setOrder(Order.OverThenDown);
 Order order = pageSetup.getOrder();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The page numbering order for printing a large worksheet. Returns <a href="Order.html#DownThenOver"><code>Order.DownThenOver</code></a> when the page order is not explicitly set.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setOrder(com.grapecity.documents.excel.Order)">
<h3>setOrder</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setOrder</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 a  <a href="Order.html" title="enum class in com.grapecity.documents.excel"><code>Order</code></a> value that represents the order used to number pages when printing a large worksheet.<p>Use this method to control whether pages are numbered down the rows first or across the columns first when the worksheet spans multiple printed pages.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setOrder(Order.OverThenDown);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The page numbering order to use when printing a large worksheet.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getOrientation()">
<h3>getOrientation</h3>
<div class="member-signature"><span class="return-type"><a href="PageOrientation.html" title="enum class in com.grapecity.documents.excel">PageOrientation</a></span>&nbsp;<span class="element-name">getOrientation</span>()</div>
<div class="block">Gets a  <a href="PageOrientation.html" title="enum class in com.grapecity.documents.excel"><code>PageOrientation</code></a> value that represents the portrait or landscape printing mode. <p>Use this method to retrieve the current page orientation configured for  the worksheet's page setup.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setOrientation(PageOrientation.Landscape);
 PageOrientation orientation = pageSetup.getOrientation();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>A <a href="PageOrientation.html" title="enum class in com.grapecity.documents.excel"><code>PageOrientation</code></a> value that represents the portrait or landscape printing mode.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setOrientation(com.grapecity.documents.excel.PageOrientation)">
<h3>setOrientation</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setOrientation</span><wbr><span class="parameters">(<a href="PageOrientation.html" title="enum class in com.grapecity.documents.excel">PageOrientation</a>&nbsp;value)</span></div>
<div class="block">Sets a  <a href="PageOrientation.html" title="enum class in com.grapecity.documents.excel"><code>PageOrientation</code></a> value that represents the portrait or landscape printing mode. <p>Use this method to control how the worksheet page is oriented when it is  printed or exported to paginated formats.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setOrientation(PageOrientation.Landscape);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The page orientation to apply.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPaperSize()">
<h3>getPaperSize</h3>
<div class="member-signature"><span class="return-type"><a href="PaperSize.html" title="enum class in com.grapecity.documents.excel">PaperSize</a></span>&nbsp;<span class="element-name">getPaperSize</span>()</div>
<div class="block">Gets the size of the paper. <p>Use this method to retrieve the current  <a href="PaperSize.html" title="enum class in com.grapecity.documents.excel"><code>PaperSize</code></a> setting that is used for page setup when the worksheet is printed.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPaperSize(PaperSize.A4);
 PaperSize paperSize = pageSetup.getPaperSize();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The current paper size setting.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPaperSize(com.grapecity.documents.excel.PaperSize)">
<h3>setPaperSize</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPaperSize</span><wbr><span class="parameters">(<a href="PaperSize.html" title="enum class in com.grapecity.documents.excel">PaperSize</a>&nbsp;value)</span></div>
<div class="block">Sets the size of the paper. <p>Use this method to select a built-in  <a href="PaperSize.html" title="enum class in com.grapecity.documents.excel"><code>PaperSize</code></a> for printing or page layout. To define a custom size in inches, use  <a href="#customPaperSize(double,double)"><code>customPaperSize(double,double)</code></a> instead.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPaperSize(PaperSize.A4);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The built-in paper size to use.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="customPaperSize(double,double)">
<h3>customPaperSize</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">customPaperSize</span><wbr><span class="parameters">(double&nbsp;width,
 double&nbsp;height)</span></div>
<div class="block">Sets the custom paper size, in unit of inches. <p>This method applies a user-defined paper size for the page setup. After calling  this method,  <a href="#getPaperWidth()"><code>getPaperWidth()</code></a> and <a href="#getPaperHeight()"><code>getPaperHeight()</code></a> return the specified custom dimensions.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.customPaperSize(8.5, 13);
 double paperWidth = pageSetup.getPaperWidth();
 double paperHeight = pageSetup.getPaperHeight();
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>width</code> - The paper width, in inches. Must be greater than <code>0</code>.</dd>
<dd><code>height</code> - The paper height, in inches. Must be greater than <code>0</code>.</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/RuntimeException.html" title="class or interface in java.lang">RuntimeException</a></code> - if <code>width</code> or <code>height</code> is less than or equal to <code>0</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPaperWidth()">
<h3>getPaperWidth</h3>
<div class="member-signature"><span class="return-type">double</span>&nbsp;<span class="element-name">getPaperWidth</span>()</div>
<div class="block">Gets the width in inches of the paper, considered page orientation. <p>If a custom paper size is set by  <a href="#customPaperSize(double,double)"><code>customPaperSize(double,double)</code></a>,  this method returns the configured paper width.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.customPaperSize(8.5, 13);
 double paperWidth = pageSetup.getPaperWidth();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The paper width, in inches, based on the current page orientation.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPaperHeight()">
<h3>getPaperHeight</h3>
<div class="member-signature"><span class="return-type">double</span>&nbsp;<span class="element-name">getPaperHeight</span>()</div>
<div class="block">Gets the height in inches of the paper, considering page orientation. <p>If a custom paper size is set by  <a href="#customPaperSize(double,double)"><code>customPaperSize(double,double)</code></a>,  this method returns the configured paper height.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.customPaperSize(8.5, 13);
 double paperHeight = pageSetup.getPaperHeight();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The paper height, in inches, considering the current page orientation.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPrintGridlines()">
<h3>getPrintGridlines</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getPrintGridlines</span>()</div>
<div class="block">Gets whether cell gridlines are printed on the page. Applies only to worksheets. <p>Use this method to determine whether worksheet gridlines are included in printed output.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintGridlines(true);
 boolean printGridlines = pageSetup.getPrintGridlines();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if cell gridlines are printed on the page; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPrintGridlines(boolean)">
<h3>setPrintGridlines</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPrintGridlines</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether cell gridlines are printed on the page. Applies only to worksheets. <p>Use this method to set whether worksheet gridlines are included in printed output.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintGridlines(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> if cell gridlines are printed on the page; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPrintHeadings()">
<h3>getPrintHeadings</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getPrintHeadings</span>()</div>
<div class="block">Gets whether row and column headings are printed with this page. <p>Applies only to worksheets.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintHeadings(true);
 boolean printHeadings = pageSetup.getPrintHeadings();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if row and column headings are printed with the page; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPrintHeadings(boolean)">
<h3>setPrintHeadings</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPrintHeadings</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether row and column headings are printed with this page. <p>Applies only to worksheets.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintHeadings(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> if row and column headings are printed with the page; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPrintNotes()">
<h3>getPrintNotes</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getPrintNotes</span>()</div>
<div class="block">Gets whether cell notes are printed as end notes with the sheet. Applies only to  worksheets.
 <pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintNotes(true);
 boolean printNotes = pageSetup.getPrintNotes();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if cell notes are printed as end notes with the sheet; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPrintNotes(boolean)">
<h3>setPrintNotes</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPrintNotes</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether cell notes are printed as end notes with the sheet. Applies only to  worksheets.
 <pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintNotes(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> if cell notes are printed as end notes with the sheet; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPrintArea()">
<h3>getPrintArea</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">getPrintArea</span>()</div>
<div class="block">Gets the range to be printed, as a string using A1-style references in the  language of the macro. <p>If the print area is not specified, the used range of the worksheet is  printed by default.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintArea("$A$1:$C$10");
 String printArea = pageSetup.getPrintArea();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The print area as an A1-style reference string in the language of the macro.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPrintArea(java.lang.String)">
<h3>setPrintArea</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPrintArea</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 range to be printed, as a string using A1-style references in the  language of the macro. <p>If the print area is not specified, the used range of the worksheet is  printed by default.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintArea("$A$1:$C$10");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The print area as an A1-style reference string in the language of the macro.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPrintTitleColumns()">
<h3>getPrintTitleColumns</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">getPrintTitleColumns</span>()</div>
<div class="block">Gets the columns that contain the cells to be repeated on the left side of  each page, as a string in A1-style notation in the language of the macro. <p>Use  <a href="#setPrintTitleColumns(java.lang.String)"><code>setPrintTitleColumns(String)</code></a> to define the repeated columns for printed pages.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintTitleColumns("$A:$B");
 String printTitleColumns = pageSetup.getPrintTitleColumns();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>A string in A1-style notation that specifies the print title columns.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPrintTitleColumns(java.lang.String)">
<h3>setPrintTitleColumns</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPrintTitleColumns</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 columns that contain the cells to be repeated on the left side of  each page, as a string in A1-style notation in the language of the macro.
 <pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintTitleColumns("$A:$B");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - A string in A1-style notation that specifies the print title columns.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPrintTitleRows()">
<h3>getPrintTitleRows</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">getPrintTitleRows</span>()</div>
<div class="block">Gets the rows that contain the cells to be repeated at the top of each  page, as a string in A1-style notation in the language of the macro. <p>Use this method to retrieve the current repeating row setting for the  worksheet page setup.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintTitleRows("$1:$2");
 String printTitleRows = pageSetup.getPrintTitleRows();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The rows to repeat at the top of each page, expressed as an A1-style row reference string in the language of the macro.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPrintTitleRows(java.lang.String)">
<h3>setPrintTitleRows</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPrintTitleRows</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 rows that contain the cells to be repeated at the top of each  page, as a string in A1-style notation in the language of the macro. <p>Use this method to set the repeating row setting for the worksheet page setup.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintTitleRows("$1:$2");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The rows to repeat at the top of each page, expressed as an A1-style row reference string in the language of the macro.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPrintTailColumns()">
<h3>getPrintTailColumns</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">getPrintTailColumns</span>()</div>
<div class="block">Gets the columns that contain the cells to be repeated on the right side of  each page, as a string in A1-style notation in the language of the macro. <p>Use this property to read the current right-side repeating column setting  for the worksheet page setup.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintTailColumns("$I:$J");
 String printTailColumns = pageSetup.getPrintTailColumns();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>A string that specifies the columns to repeat on the right side of each page in A1-style notation.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPrintTailColumns(java.lang.String)">
<h3>setPrintTailColumns</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPrintTailColumns</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 columns that contain the cells to be repeated on the right side of  each page, as a string in A1-style notation in the language of the macro. <p>Use this property to set the right-side repeating column setting for the worksheet page setup.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintTailColumns("$I:$J");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - A string that specifies the columns to repeat on the right side of each page in A1-style notation.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPrintTailRows()">
<h3>getPrintTailRows</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">getPrintTailRows</span>()</div>
<div class="block">Gets the rows that contain the cells to be repeated on the bottom of  each page, as a string in A1-style notation in the language of the macro. <p>Use this method to retrieve the bottom repeating rows configured for the worksheet page setup.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintTailRows("$50:$50");
 String printTailRows = pageSetup.getPrintTailRows();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>A string that specifies the bottom repeating rows in A1-style notation in the language of the macro.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPrintTailRows(java.lang.String)">
<h3>setPrintTailRows</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPrintTailRows</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 rows that contain the cells to be repeated on the bottom of  each page, as a string in A1-style notation in the language of the macro. <p>Use this method to set the bottom repeating rows configured for the worksheet page setup.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintTailRows("$50:$50");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - A string that specifies the bottom repeating rows in A1-style notation in the language of the macro.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPrintCopies()">
<h3>getPrintCopies</h3>
<div class="member-signature"><span class="return-type">int</span>&nbsp;<span class="element-name">getPrintCopies</span>()</div>
<div class="block">Gets the number of copies to print. <p>Returns the print copies setting for the worksheet page setup. If no page setup  has been created, this method returns  <code>1</code>.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintCopies(3);
 int printCopies = pageSetup.getPrintCopies();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The number of copies to print. Returns <code>1</code> if no page setup has been created.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPrintCopies(int)">
<h3>setPrintCopies</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPrintCopies</span><wbr><span class="parameters">(int&nbsp;value)</span></div>
<div class="block">Sets the number of copies to print. <p>Sets the print copies setting for the worksheet page setup. If no page setup  has been created, this method Sets  <code>1</code>.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintCopies(3);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The number of copies to print. Sets <code>1</code> if no page setup has been created.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPrintPageRange()">
<h3>getPrintPageRange</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">getPrintPageRange</span>()</div>
<div class="block">Gets the range of pages to print, where page numbers or page ranges are separated by commas and counted from the beginning of the document. <p>Use this property to retrieve the page-range string that controls which pages are included in the print operation. For example,  <code>"1,3,5-12"</code> prints page 1, page 3, and pages 5 through 12.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintPageRange("1,3-5");
 String printPageRange = pageSetup.getPrintPageRange();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The print page range string.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPrintPageRange(java.lang.String)">
<h3>setPrintPageRange</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPrintPageRange</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 range of pages to print, where page numbers or page ranges are separated by commas and counted from the beginning of the document. <p>Use this property to set the page-range string that controls which pages are included in the print operation.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintPageRange("1,3-5");
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The print page range string.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getZoom()">
<h3>getZoom</h3>
<div class="member-signature"><span class="return-type">int</span>&nbsp;<span class="element-name">getZoom</span>()</div>
<div class="block">Gets a Variant value that represents a percentage (between 10 and 400 percent) by which Document Solutions for Excel will scale the worksheet for printing. <p>This property is used when the worksheet is scaled as a percentage. If  <a href="#getIsPercentScale()"><code>getIsPercentScale()</code></a> returns <code>false</code>, scaling is controlled by  <a href="#getFitToPagesWide()"><code>getFitToPagesWide()</code></a> and <a href="#getFitToPagesTall()"><code>getFitToPagesTall()</code></a> instead.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setIsPercentScale(true);
 pageSetup.setZoom(125);
 int zoom = pageSetup.getZoom();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The print scaling percentage, from 10 to 400.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setZoom(int)">
<h3>setZoom</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setZoom</span><wbr><span class="parameters">(int&nbsp;value)</span></div>
<div class="block">Sets a Variant value that represents a percentage (between 10 and 400 percent) by which Document Solutions for Excel will scale the worksheet for printing. <p>This property is used when the worksheet is scaled as a percentage. If  <a href="#getIsPercentScale()"><code>getIsPercentScale()</code></a> Sets <code>false</code>, scaling is controlled by  <a href="#getFitToPagesWide()"><code>getFitToPagesWide()</code></a> and <a href="#getFitToPagesTall()"><code>getFitToPagesTall()</code></a> instead.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setIsPercentScale(true);
 pageSetup.setZoom(125);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The print scaling percentage, from 10 to 400.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPrintComments()">
<h3>getPrintComments</h3>
<div class="member-signature"><span class="return-type"><a href="PrintLocation.html" title="enum class in com.grapecity.documents.excel">PrintLocation</a></span>&nbsp;<span class="element-name">getPrintComments</span>()</div>
<div class="block">Gets the way comments are printed with the sheet. <p>Use this property to determine whether comments are not printed, printed as end notes,  or printed in place on the worksheet. If the page setup has not been initialized, this  method returns  <a href="PrintLocation.html#NoComments"><code>PrintLocation.NoComments</code></a>.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintComments(PrintLocation.SheetEnd);
 PrintLocation printComments = pageSetup.getPrintComments();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>A <a href="PrintLocation.html" title="enum class in com.grapecity.documents.excel"><code>PrintLocation</code></a> value that indicates how comments are printed with the sheet.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPrintComments(com.grapecity.documents.excel.PrintLocation)">
<h3>setPrintComments</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPrintComments</span><wbr><span class="parameters">(<a href="PrintLocation.html" title="enum class in com.grapecity.documents.excel">PrintLocation</a>&nbsp;value)</span></div>
<div class="block">Sets the way comments are printed with the sheet. <p>Use this method to control whether worksheet comments are printed in place,  printed as end notes, or omitted when the worksheet is printed.</p>
<pre><code data-language="Java">
 IRange cell = worksheet.getRange("A1");
 cell.addComment("Check the total before printing.");
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintComments(PrintLocation.SheetEnd);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The print location to apply to worksheet comments when printing. Must be a valid  <a href="PrintLocation.html" title="enum class in com.grapecity.documents.excel"><code>PrintLocation</code></a> value; <code>null</code> is not supported.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getPrintErrors()">
<h3>getPrintErrors</h3>
<div class="member-signature"><span class="return-type"><a href="PrintErrors.html" title="enum class in com.grapecity.documents.excel">PrintErrors</a></span>&nbsp;<span class="element-name">getPrintErrors</span>()</div>
<div class="block">Gets a  <a href="PrintErrors.html" title="enum class in com.grapecity.documents.excel"><code>PrintErrors</code></a> constant specifying how cell error values are displayed when the worksheet is printed.<p>This setting can be used to suppress the display of error values during printing, for example by showing blanks, dashes, or  <code>#N/A</code> instead of the original error values.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintErrors(PrintErrors.Dash);
 PrintErrors printErrors = pageSetup.getPrintErrors();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>A <a href="PrintErrors.html" title="enum class in com.grapecity.documents.excel"><code>PrintErrors</code></a> value that specifies how print errors are displayed. Returns <a href="PrintErrors.html#Displayed"><code>PrintErrors.Displayed</code></a> if no explicit page setup has been created.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setPrintErrors(com.grapecity.documents.excel.PrintErrors)">
<h3>setPrintErrors</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setPrintErrors</span><wbr><span class="parameters">(<a href="PrintErrors.html" title="enum class in com.grapecity.documents.excel">PrintErrors</a>&nbsp;value)</span></div>
<div class="block">Sets a  <a href="PrintErrors.html" title="enum class in com.grapecity.documents.excel"><code>PrintErrors</code></a> constant specifying how print errors are displayed.<p>This feature allows users to suppress the display of error values when  printing a worksheet.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setPrintErrors(PrintErrors.Dash);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The print error display mode.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getCenterHeaderPicture()">
<h3>getCenterHeaderPicture</h3>
<div class="member-signature"><span class="return-type"><a href="IGraphic.html" title="interface in com.grapecity.documents.excel">IGraphic</a></span>&nbsp;<span class="element-name">getCenterHeaderPicture</span>()</div>
<div class="block">Gets a  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the center section of the header. Used to set attributes about the picture. <p>Use the returned  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object to set attributes of the picture, such as the image source or size.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 IGraphic picture = pageSetup.getCenterHeaderPicture();
 picture.setFilename(java.nio.file.Paths.get("Users", "DefaultApps", "Documents", "logo.png").toString());
 picture.setWidth(36);
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the center section of the header.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getCenterFooterPicture()">
<h3>getCenterFooterPicture</h3>
<div class="member-signature"><span class="return-type"><a href="IGraphic.html" title="interface in com.grapecity.documents.excel">IGraphic</a></span>&nbsp;<span class="element-name">getCenterFooterPicture</span>()</div>
<div class="block">Gets a  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the center section of the footer. Used to set attributes about the picture. <p>Use the returned  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object to set attributes of the picture, such as the image source or size.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 IGraphic picture = pageSetup.getCenterFooterPicture();
 picture.setFilename(java.nio.file.Paths.get("Users", "DefaultApps", "Documents", "logo.png").toString());
 picture.setWidth(36);
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the center section of the footer.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getLeftHeaderPicture()">
<h3>getLeftHeaderPicture</h3>
<div class="member-signature"><span class="return-type"><a href="IGraphic.html" title="interface in com.grapecity.documents.excel">IGraphic</a></span>&nbsp;<span class="element-name">getLeftHeaderPicture</span>()</div>
<div class="block">Gets a  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the left section of the header. Used to set attributes about the picture. <p>Use the returned  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object to set attributes of the picture, such as the image source or size.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 IGraphic picture = pageSetup.getLeftHeaderPicture();
 picture.setFilename(java.nio.file.Paths.get("Users", "DefaultApps", "Documents", "logo.png").toString());
 picture.setWidth(36);
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the left section of the header.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getLeftFooterPicture()">
<h3>getLeftFooterPicture</h3>
<div class="member-signature"><span class="return-type"><a href="IGraphic.html" title="interface in com.grapecity.documents.excel">IGraphic</a></span>&nbsp;<span class="element-name">getLeftFooterPicture</span>()</div>
<div class="block">Gets a  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the left section of the footer. Used to set attributes about the picture. <p>Use the returned  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object to set attributes of the picture, such as the image source or size.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 IGraphic picture = pageSetup.getLeftFooterPicture();
 picture.setFilename(java.nio.file.Paths.get("Users", "DefaultApps", "Documents", "logo.png").toString());
 picture.setWidth(36);
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the left section of the footer.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getRightHeaderPicture()">
<h3>getRightHeaderPicture</h3>
<div class="member-signature"><span class="return-type"><a href="IGraphic.html" title="interface in com.grapecity.documents.excel">IGraphic</a></span>&nbsp;<span class="element-name">getRightHeaderPicture</span>()</div>
<div class="block">Gets a  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the right section of the header. Used to set attributes of the picture. <p>Use the returned  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object to set attributes of the picture, such as the image source or size.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 IGraphic picture = pageSetup.getRightHeaderPicture();
 picture.setFilename(java.nio.file.Paths.get("Users", "DefaultApps", "Documents", "logo.png").toString());
 picture.setWidth(36);
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the right section of the header.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getRightFooterPicture()">
<h3>getRightFooterPicture</h3>
<div class="member-signature"><span class="return-type"><a href="IGraphic.html" title="interface in com.grapecity.documents.excel">IGraphic</a></span>&nbsp;<span class="element-name">getRightFooterPicture</span>()</div>
<div class="block">Gets a  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the right section of the footer. <p>Use the returned  <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object to set attributes of the picture, such as the image source or size.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 IGraphic picture = pageSetup.getRightFooterPicture();
 picture.setFilename(java.nio.file.Paths.get("Users", "DefaultApps", "Documents", "logo.png").toString());
 picture.setWidth(36);
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The <a href="IGraphic.html" title="interface in com.grapecity.documents.excel"><code>IGraphic</code></a> object that represents the picture for the right section of the footer.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getEvenPage()">
<h3>getEvenPage</h3>
<div class="member-signature"><span class="return-type"><a href="IPage.html" title="interface in com.grapecity.documents.excel">IPage</a></span>&nbsp;<span class="element-name">getEvenPage</span>()</div>
<div class="block">Gets the alignment of text on the even  <a href="IPage.html" title="interface in com.grapecity.documents.excel"><code>IPage</code></a> of a workbook or section. <p>Use the returned  <a href="IPage.html" title="interface in com.grapecity.documents.excel"><code>IPage</code></a> object to configure headers and footers for even pages when odd and even page headers and footers are enabled.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setOddAndEvenPagesHeaderFooter(true);
 IPage evenPage = pageSetup.getEvenPage();
 evenPage.getCenterHeader().setText("Even Page");
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The <a href="IPage.html" title="interface in com.grapecity.documents.excel"><code>IPage</code></a> object that represents the even page header and footer settings.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getFirstPage()">
<h3>getFirstPage</h3>
<div class="member-signature"><span class="return-type"><a href="IPage.html" title="interface in com.grapecity.documents.excel">IPage</a></span>&nbsp;<span class="element-name">getFirstPage</span>()</div>
<div class="block">Gets the alignment of text on the first  <a href="IPage.html" title="interface in com.grapecity.documents.excel"><code>IPage</code></a> of a workbook or section. <p>Use the returned  <a href="IPage.html" title="interface in com.grapecity.documents.excel"><code>IPage</code></a> object to configure headers and footers for the first page when a different first page header and footer is enabled.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setDifferentFirstPageHeaderFooter(true);
 IPage firstPage = pageSetup.getFirstPage();
 firstPage.getCenterHeader().setText("Cover Page");
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The <a href="IPage.html" title="interface in com.grapecity.documents.excel"><code>IPage</code></a> object that represents the first page header and footer settings.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getBestFitColumns()">
<h3>getBestFitColumns</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getBestFitColumns</span>()</div>
<div class="block">Gets whether column widths are adjusted to fit the longest text width for printing. <p>When this property is  <code>true</code>, the worksheet uses best-fit column widths during printing.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setBestFitColumns(true);
 boolean bestFitColumns = pageSetup.getBestFitColumns();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if column widths are adjusted to fit the longest text width for printing; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setBestFitColumns(boolean)">
<h3>setBestFitColumns</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setBestFitColumns</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether column widths are adjusted to fit the longest text width for printing. <p>When this property is  <code>true</code>, the worksheet uses best-fit column widths during printing.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setBestFitColumns(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> if column widths are adjusted to fit the longest text width for printing; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getBestFitRows()">
<h3>getBestFitRows</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getBestFitRows</span>()</div>
<div class="block">Gets whether row heights are adjusted to fit the tallest text height for printing. <p>When this property is  <code>true</code>, the page setup automatically adjusts row heights  to accommodate the tallest text when the worksheet is printed.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setBestFitRows(true);
 boolean bestFitRows = pageSetup.getBestFitRows();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if row heights are adjusted to fit the tallest text height for printing; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setBestFitRows(boolean)">
<h3>setBestFitRows</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setBestFitRows</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether row heights are adjusted to fit the tallest text height for printing. <p>When this property is  <code>true</code>, the page setup automatically adjusts row heights  to accommodate the tallest text when the worksheet is printed.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setBestFitRows(true);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> if row heights are adjusted to fit the tallest text height for printing; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="fromJson(java.lang.String)">
<h3>fromJson</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">fromJson</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;json)</span></div>
<div class="block">Generates the page setup from the specified JSON string. <p>Use this method to apply page setup settings from serialized JSON data,  such as JSON produced by  <a href="#toJson()"><code>toJson()</code></a>.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 String json = "{\"bestFitRows\":true,\"bestFitColumns\":true,"
     + "\"margin\":{\"top\":36,\"bottom\":36,\"left\":30,\"right\":30}}";
 pageSetup.fromJson(json);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>json</code> - The JSON string representing the page setup.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="toJson()">
<h3>toJson</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">toJson</span>()</div>
<div class="block">Generates a JSON string from the page setup. <p>Use this method to serialize the current page setup settings to JSON so that  they can be stored or later applied by using  <a href="#fromJson(java.lang.String)"><code>fromJson(String)</code></a>.</p>
<pre><code data-language="Java">
 IPageSetup pageSetup = worksheet.getPageSetup();
 pageSetup.setBlackAndWhite(true);
 pageSetup.setLeftHeader("Quarterly Report");
 String json = pageSetup.toJson();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The JSON string representing the page setup.</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>