# IStyle

## 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 IStyle</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">IStyle</span></div>
<div class="block">Represents a style that can be applied to a range. <p>An  <code>IStyle</code> defines formatting such as font, borders, fill, number format, alignment, and protection settings for cells. Styles are  typically created or retrieved through the workbook's  <a href="IStyleCollection.html" title="interface in com.grapecity.documents.excel"><code>IStyleCollection</code></a> and then applied to an <a href="IRange.html" title="interface in com.grapecity.documents.excel"><code>IRange</code></a>.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("Highlight");
 style.getFont().setBold(true);
 style.setHorizontalAlignment(HorizontalAlignment.Center);
 worksheet.getRange("A1").setStyle(style);
 </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>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="#delete()">delete</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Deletes this style.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#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 named style from the 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="#getAddIndent()">getAddIndent</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 text is automatically indented when the text alignment in a cell  is set to equal distribution either horizontally or vertically.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IBorders.html" title="interface in com.grapecity.documents.excel">IBorders</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="#getBorders()">getBorders</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Returns the  <a href="IBorders.html" title="interface in com.grapecity.documents.excel"><code>IBorders</code></a> collection that represents the borders of a style.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getBuiltIn()">getBuiltIn</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 style is a built-in style.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IFont.html" title="interface in com.grapecity.documents.excel">IFont</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="#getFont()">getFont</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Returns the  <a href="IFont.html" title="interface in com.grapecity.documents.excel"><code>IFont</code></a> object that represents this style's font.</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="#getFormulaHidden()">getFormulaHidden</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 formulas are hidden when the worksheet is protected.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="HorizontalAlignment.html" title="enum class in com.grapecity.documents.excel">HorizontalAlignment</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="#getHorizontalAlignment()">getHorizontalAlignment</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 horizontal alignment for this style.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#getIncludeAlignment()">getIncludeAlignment</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 style includes the AddIndent, HorizontalAlignment,  VerticalAlignment, WrapText, and Orientation properties.</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="#getIncludeBorder()">getIncludeBorder</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 style includes the Color, ColorIndex, LineStyle, and Weight  border properties.</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="#getIncludeFont()">getIncludeFont</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 style includes the Bold, Color, ColorIndex, FontStyle,  Italic, Name, OutlineFont, Shadow, Size, Strikethrough, Subscript,  Superscript, and Underline font properties.</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="#getIncludeNumber()">getIncludeNumber</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 style includes the NumberFormat property.</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="#getIncludePatterns()">getIncludePatterns</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 style includes the Color, InvertIfNegative, Pattern,  PatternColor, and PatternColorIndex interior properties.</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="#getIncludeProtection()">getIncludeProtection</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 style includes the FormulaHidden and Locked properties.</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="#getIndentLevel()">getIndentLevel</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Gets the indent level for the style.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="IInterior.html" title="interface in com.grapecity.documents.excel">IInterior</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="#getInterior()">getInterior</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Returns an  <a href="IInterior.html" title="interface in com.grapecity.documents.excel"><code>IInterior</code></a> object that represents this style's fill formatting.</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="#getLocked()">getLocked</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 object is locked;  <code>false</code> if the object can be modified when the sheet is protected.</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="#getName()">getName</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Returns the name of the object.</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="#getNumberFormat()">getNumberFormat</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 format code for the object as a string in the language of the user.</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="#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 the text orientation.</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="#getShrinkToFit()">getShrinkToFit</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 text automatically shrinks to fit in the available column  width.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="VerticalAlignment.html" title="enum class in com.grapecity.documents.excel">VerticalAlignment</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="#getVerticalAlignment()">getVerticalAlignment</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 vertical alignment of the specified object.</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="#getWrapText()">getWrapText</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 text wraps automatically.</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="#setAddIndent(boolean)">setAddIndent</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 text is automatically indented when the text alignment in a cell  is set to equal distribution either horizontally or vertically.</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="#setFormulaHidden(boolean)">setFormulaHidden</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 formulas are hidden when the worksheet is protected.</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="#setHorizontalAlignment(com.grapecity.documents.excel.HorizontalAlignment)">setHorizontalAlignment</a><wbr>(<a href="HorizontalAlignment.html" title="enum class in com.grapecity.documents.excel">HorizontalAlignment</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 horizontal alignment for the specified 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="#setIncludeAlignment(boolean)">setIncludeAlignment</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 style includes the AddIndent, HorizontalAlignment,  VerticalAlignment, WrapText, and Orientation properties.</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="#setIncludeBorder(boolean)">setIncludeBorder</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 style includes the Color, ColorIndex, LineStyle, and Weight  border properties.</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="#setIncludeFont(boolean)">setIncludeFont</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 style includes the Bold, Color, ColorIndex, FontStyle, Italic,  Name, OutlineFont, Shadow, Size, Strikethrough, Subscript, Superscript, and  Underline font properties.</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="#setIncludeNumber(boolean)">setIncludeNumber</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 style includes the NumberFormat property.</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="#setIncludePatterns(boolean)">setIncludePatterns</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 style includes the Color, InvertIfNegative, Pattern,  PatternColor, and PatternColorIndex interior properties.</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="#setIncludeProtection(boolean)">setIncludeProtection</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 style includes the FormulaHidden and Locked properties.</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="#setIndentLevel(int)">setIndentLevel</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 indent level for the style.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>void</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a class="member-name-link" href="#setLocked(boolean)">setLocked</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 object is locked;  <code>false</code> if the object can be modified when the sheet is protected.</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="#setNumberFormat(java.lang.String)">setNumberFormat</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 format code for the object as a string in the language of the user.</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(int)">setOrientation</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 text orientation.</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="#setShrinkToFit(boolean)">setShrinkToFit</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 text automatically shrinks to fit in the available column  width.</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="#setVerticalAlignment(com.grapecity.documents.excel.VerticalAlignment)">setVerticalAlignment</a><wbr>(<a href="VerticalAlignment.html" title="enum class in com.grapecity.documents.excel">VerticalAlignment</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 vertical alignment for this style.</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="#setWrapText(boolean)">setWrapText</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 text wraps automatically.</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="#toJson()">toJson</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Generates a JSON string from the named style.</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="getAddIndent()">
<h3>getAddIndent</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getAddIndent</span>()</div>
<div class="block">Gets whether text is automatically indented when the text alignment in a cell  is set to equal distribution either horizontally or vertically. <p>Use this method to determine whether the style keeps the automatic indent  setting for distributed text alignment.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("distributedIndent");
 style.setHorizontalAlignment(HorizontalAlignment.Distributed);
 style.setAddIndent(true);
 worksheet.getRange("A1").setStyle(style);
 boolean addIndent = style.getAddIndent();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if text is automatically indented for distributed alignment; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setAddIndent(boolean)">
<h3>setAddIndent</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setAddIndent</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether text is automatically indented when the text alignment in a cell  is set to equal distribution either horizontally or vertically. <p>This setting is relevant when the style uses distributed alignment, such as  <a href="#setHorizontalAlignment(com.grapecity.documents.excel.HorizontalAlignment)"><code>setHorizontalAlignment(HorizontalAlignment)</code></a> or <a href="#setVerticalAlignment(com.grapecity.documents.excel.VerticalAlignment)"><code>setVerticalAlignment(VerticalAlignment)</code></a>. Set this parameter to  <code>true</code> to enable automatic indentation for distributed text, or <code>false</code> to disable it.</p>
<pre><code data-language="Java">
 IRange cell = worksheet.getRange("A1");
 cell.setValue("Distributed text");
 IStyle style = workbook.getStyles().add("distributedIndent");
 style.setHorizontalAlignment(HorizontalAlignment.Distributed);
 style.setAddIndent(true);
 cell.setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> to automatically indent text when distributed alignment is used; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getBorders()">
<h3>getBorders</h3>
<div class="member-signature"><span class="return-type"><a href="IBorders.html" title="interface in com.grapecity.documents.excel">IBorders</a></span>&nbsp;<span class="element-name">getBorders</span>()</div>
<div class="block">Returns the  <a href="IBorders.html" title="interface in com.grapecity.documents.excel"><code>IBorders</code></a> collection that represents the borders of a style. <p>Use this method to access and modify the border settings stored in the  style.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("borderStyle");
 style.getBorders().setLineStyle(BorderLineStyle.DashDot);
 worksheet.getRange("A1").setStyle(style);
 IBorders borders = style.getBorders();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The border collection for the style.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getBuiltIn()">
<h3>getBuiltIn</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getBuiltIn</span>()</div>
<div class="block">Gets whether the style is a built-in style. <p>Use this method to determine whether a style comes from the built-in  workbook styles rather than a custom named style.</p>
<pre><code data-language="Java">
 IStyle normalStyle = workbook.getStyles().get("Normal");
 worksheet.getRange("A1").setStyle(normalStyle);
 boolean builtIn = normalStyle.getBuiltIn();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the style is built in; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getFont()">
<h3>getFont</h3>
<div class="member-signature"><span class="return-type"><a href="IFont.html" title="interface in com.grapecity.documents.excel">IFont</a></span>&nbsp;<span class="element-name">getFont</span>()</div>
<div class="block">Returns the  <a href="IFont.html" title="interface in com.grapecity.documents.excel"><code>IFont</code></a> object that represents this style's font.<p>Use this method to access font settings such as bold, size, color, and  font name for the style.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("headerStyle");
 style.getFont().setBold(true);
 worksheet.getRange("A1").setStyle(style);
 IFont font = style.getFont();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The font object for the style.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getFormulaHidden()">
<h3>getFormulaHidden</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getFormulaHidden</span>()</div>
<div class="block">Gets whether formulas are hidden when the worksheet is protected. <p>Use this method to determine whether cells that use this style hide their  formulas after worksheet protection is enabled.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("hiddenFormulaStyle");
 style.setFormulaHidden(true);
 worksheet.getRange("A1").setStyle(style);
 boolean hidden = style.getFormulaHidden();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if formulas are hidden for this style when the worksheet is protected; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setFormulaHidden(boolean)">
<h3>setFormulaHidden</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setFormulaHidden</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether formulas are hidden when the worksheet is protected. <p>Use this method to control the formula visibility setting stored in the  style. When this style is applied to a cell or range, the formula is hidden  if worksheet protection is enabled.</p>
<pre><code data-language="Java">
 IRange cell = worksheet.getRange("A1");
 cell.setFormula("=B1+C1");
 IStyle style = workbook.getStyles().add("hiddenFormulaStyle");
 style.setFormulaHidden(true);
 cell.setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> to hide formulas for cells that use this style when the worksheet is protected; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getHorizontalAlignment()">
<h3>getHorizontalAlignment</h3>
<div class="member-signature"><span class="return-type"><a href="HorizontalAlignment.html" title="enum class in com.grapecity.documents.excel">HorizontalAlignment</a></span>&nbsp;<span class="element-name">getHorizontalAlignment</span>()</div>
<div class="block">Gets the horizontal alignment for this style. <p>Use this method to retrieve the horizontal alignment stored in the  style.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("centerStyle");
 style.setHorizontalAlignment(HorizontalAlignment.Center);
 worksheet.getRange("A1").setStyle(style);
 HorizontalAlignment alignment = style.getHorizontalAlignment();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The horizontal alignment defined for the style.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setHorizontalAlignment(com.grapecity.documents.excel.HorizontalAlignment)">
<h3>setHorizontalAlignment</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setHorizontalAlignment</span><wbr><span class="parameters">(<a href="HorizontalAlignment.html" title="enum class in com.grapecity.documents.excel">HorizontalAlignment</a>&nbsp;value)</span></div>
<div class="block">Sets the horizontal alignment for the specified object. <p>Use this method to define how content is aligned horizontally when the  style is applied to a cell or range.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("centerStyle");
 style.setHorizontalAlignment(HorizontalAlignment.Center);
 worksheet.getRange("A1").setValue("Name");
 worksheet.getRange("A1").setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The horizontal alignment to apply to the style.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getIncludeAlignment()">
<h3>getIncludeAlignment</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getIncludeAlignment</span>()</div>
<div class="block">Gets whether style includes the AddIndent, HorizontalAlignment,  VerticalAlignment, WrapText, and Orientation properties. <p>Use this method to determine whether alignment-related settings  participate when the style is applied.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("alignmentStyle");
 style.setHorizontalAlignment(HorizontalAlignment.Right);
 style.setIncludeAlignment(false);
 worksheet.getRange("A1").setStyle(style);
 boolean includeAlignment = style.getIncludeAlignment();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if alignment-related properties are included in the style; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setIncludeAlignment(boolean)">
<h3>setIncludeAlignment</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setIncludeAlignment</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the style includes the AddIndent, HorizontalAlignment,  VerticalAlignment, WrapText, and Orientation properties. <p>Use this method to control whether alignment-related settings participate  in the style when the style is applied.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("alignmentStyle");
 style.setHorizontalAlignment(HorizontalAlignment.Right);
 style.setIncludeAlignment(false);
 worksheet.getRange("A1").setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> to include the AddIndent, HorizontalAlignment, VerticalAlignment, WrapText, and Orientation properties in the style;  otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getIncludeBorder()">
<h3>getIncludeBorder</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getIncludeBorder</span>()</div>
<div class="block">Gets whether the style includes the Color, ColorIndex, LineStyle, and Weight  border properties. <p>Use this method to determine whether border settings defined on the style  are included when the style is applied.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("borderStyle");
 style.getBorders().setLineStyle(BorderLineStyle.DashDot);
 style.setIncludeBorder(true);
 worksheet.getRange("A1").setStyle(style);
 boolean includeBorder = style.getIncludeBorder();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if border properties are included in the style; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setIncludeBorder(boolean)">
<h3>setIncludeBorder</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setIncludeBorder</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the style includes the Color, ColorIndex, LineStyle, and Weight  border properties. <p>Use this property to control whether the border settings defined on the  style are included when the style is applied. See  <a href="#getIncludeBorder()"><code>getIncludeBorder()</code></a> and <a href="#getBorders()"><code>getBorders()</code></a>.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("borderStyle");
 style.getBorders().setLineStyle(BorderLineStyle.DashDot);
 style.setIncludeBorder(true);
 worksheet.getRange("A1").setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> to include the Color, ColorIndex, LineStyle, and Weight border properties in the style; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getIncludeFont()">
<h3>getIncludeFont</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getIncludeFont</span>()</div>
<div class="block">Gets whether the style includes the Bold, Color, ColorIndex, FontStyle,  Italic, Name, OutlineFont, Shadow, Size, Strikethrough, Subscript,  Superscript, and Underline font properties. <p>Use this method to determine whether font settings stored in the style  are included when the style is applied.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("fontStyle");
 style.getFont().setBold(true);
 style.getFont().setName("Arial");
 style.setIncludeFont(false);
 worksheet.getRange("A1").setStyle(style);
 boolean includeFont = style.getIncludeFont();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if font properties are included in the style; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setIncludeFont(boolean)">
<h3>setIncludeFont</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setIncludeFont</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the style includes the Bold, Color, ColorIndex, FontStyle, Italic,  Name, OutlineFont, Shadow, Size, Strikethrough, Subscript, Superscript, and  Underline font properties. <p>Use this property to control whether the font settings defined by this style  are included when the style is applied to a range.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("fontStyle");
 style.getFont().setBold(true);
 style.getFont().setName("Arial");
 style.setIncludeFont(false);
 worksheet.getRange("A1").setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> to include the font properties in the style; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getIncludeNumber()">
<h3>getIncludeNumber</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getIncludeNumber</span>()</div>
<div class="block">Gets whether the style includes the NumberFormat property. <p>Use this method to determine whether the number format stored in the  style is included when the style is applied.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("numberStyle");
 style.setNumberFormat("$#,##0.00");
 style.setIncludeNumber(true);
 worksheet.getRange("A1").setStyle(style);
 boolean includeNumber = style.getIncludeNumber();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the NumberFormat property is included in the style; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setIncludeNumber(boolean)">
<h3>setIncludeNumber</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setIncludeNumber</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the style includes the NumberFormat property. <p>Use this method to control whether the number format defined by this style  is included when the style is applied to a range.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("numberStyle");
 style.setNumberFormat("$#,##0.00");
 style.setIncludeNumber(true);
 worksheet.getRange("A1").setValue(100);
 worksheet.getRange("A1").setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> to include the NumberFormat property in the style; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getIncludePatterns()">
<h3>getIncludePatterns</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getIncludePatterns</span>()</div>
<div class="block">Gets whether the style includes the Color, InvertIfNegative, Pattern,  PatternColor, and PatternColorIndex interior properties. <p>Use this method to determine whether interior pattern settings are  included when the style is applied.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("patternStyle");
 style.getInterior().setPattern(Pattern.Gray50);
 style.getInterior().setPatternColor(Color.GetBlue());
 style.setIncludePatterns(true);
 worksheet.getRange("A1").setStyle(style);
 boolean includePatterns = style.getIncludePatterns();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if pattern-related interior properties are included in the style; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setIncludePatterns(boolean)">
<h3>setIncludePatterns</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setIncludePatterns</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the style includes the Color, InvertIfNegative, Pattern,  PatternColor, and PatternColorIndex interior properties. <p>Use this property to control whether the pattern-related settings from the  style's  <a href="IInterior.html" title="interface in com.grapecity.documents.excel"><code>IInterior</code></a> are applied when the style is assigned to a range.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("patternStyle");
 style.getInterior().setPattern(Pattern.Gray50);
 style.getInterior().setPatternColor(Color.GetBlue());
 style.setIncludePatterns(true);
 worksheet.getRange("A1").setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> to include the Color, InvertIfNegative, Pattern, PatternColor, and PatternColorIndex interior properties in the style;  otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getIncludeProtection()">
<h3>getIncludeProtection</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getIncludeProtection</span>()</div>
<div class="block">Gets whether the style includes the FormulaHidden and Locked properties. <p>Use this method to determine whether the protection-related settings  defined by the style participate when the style is applied.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("protectionStyle");
 style.setLocked(true);
 style.setFormulaHidden(true);
 style.setIncludeProtection(false);
 worksheet.getRange("A1").setStyle(style);
 boolean includeProtection = style.getIncludeProtection();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if FormulaHidden and Locked are included in the style; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setIncludeProtection(boolean)">
<h3>setIncludeProtection</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setIncludeProtection</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the style includes the FormulaHidden and Locked properties. <p>Use this property to control whether the protection settings defined by  <a href="#setFormulaHidden(boolean)"><code>setFormulaHidden(boolean)</code></a> and <a href="#setLocked(boolean)"><code>setLocked(boolean)</code></a> are included in the style.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("protectionStyle");
 style.setLocked(true);
 style.setFormulaHidden(true);
 style.setIncludeProtection(false);
 worksheet.getRange("A1").setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> to include the FormulaHidden and Locked properties in the style; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getIndentLevel()">
<h3>getIndentLevel</h3>
<div class="member-signature"><span class="return-type">int</span>&nbsp;<span class="element-name">getIndentLevel</span>()</div>
<div class="block">Gets the indent level for the style. <p>Use this method to retrieve the indentation setting stored in the  style.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("indentStyle");
 style.setIndentLevel(2);
 worksheet.getRange("A1").setStyle(style);
 int indentLevel = style.getIndentLevel();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The indent level defined for the style.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setIndentLevel(int)">
<h3>setIndentLevel</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setIndentLevel</span><wbr><span class="parameters">(int&nbsp;value)</span></div>
<div class="block">Sets the indent level for the style. <p>Use this method to define the indentation applied to cell content when this  style is assigned to a cell or range. To make the indentation part of the  named style, ensure the alignment settings are included in the style.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("indentStyle");
 style.setIndentLevel(2);
 worksheet.getRange("A1").setValue("Name");
 worksheet.getRange("A1").setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The indent level for the style.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getInterior()">
<h3>getInterior</h3>
<div class="member-signature"><span class="return-type"><a href="IInterior.html" title="interface in com.grapecity.documents.excel">IInterior</a></span>&nbsp;<span class="element-name">getInterior</span>()</div>
<div class="block">Returns an  <a href="IInterior.html" title="interface in com.grapecity.documents.excel"><code>IInterior</code></a> object that represents this style's fill formatting.<p>Use this method to access fill and pattern settings such as background  color and pattern style for the style.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("filledStyle");
 style.getInterior().setPattern(Pattern.Solid);
 worksheet.getRange("A1").setStyle(style);
 IInterior interior = style.getInterior();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The interior object for the style.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getLocked()">
<h3>getLocked</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getLocked</span>()</div>
<div class="block">Gets whether the object is locked;  <code>false</code> if the object can be modified when the sheet is protected. <p>Use this method to determine whether cells that use the style are locked  when worksheet protection is enabled.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("lockedStyle");
 style.setLocked(true);
 worksheet.getRange("A1").setStyle(style);
 boolean locked = style.getLocked();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the object is locked; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setLocked(boolean)">
<h3>setLocked</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setLocked</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the object is locked;  <code>false</code> if the object can be modified when the sheet is protected. <p>Use this method to control the locked setting stored in the style. When this  style is applied to a cell or range, the locked state takes effect when worksheet  protection is enabled.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("lockedStyle");
 style.setLocked(true);
 worksheet.getRange("A1").setValue("Name");
 worksheet.getRange("A1").setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> to lock cells that use this style when the worksheet is protected; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getName()">
<h3>getName</h3>
<div class="member-signature"><span class="return-type"><a class="external-link" href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang">String</a></span>&nbsp;<span class="element-name">getName</span>()</div>
<div class="block">Returns the name of the object. <p>Use this method to get the name of the named style stored in the  workbook.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("HeaderStyle");
 worksheet.getRange("A1").setStyle(style);
 String styleName = style.getName();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The name of the style.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getNumberFormat()">
<h3>getNumberFormat</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">getNumberFormat</span>()</div>
<div class="block">Gets the format code for the object as a string in the language of the user. <p>Use this method to retrieve the number format code stored in the  style.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("currencyStyle");
 style.setNumberFormat("$#,##0.00");
 worksheet.getRange("A1").setStyle(style);
 String numberFormat = style.getNumberFormat();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The number format code stored in the style.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setNumberFormat(java.lang.String)">
<h3>setNumberFormat</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setNumberFormat</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 format code for the object as a string in the language of the user. <p>Use this method to define the number format stored in the style. After the style  is applied to a range, numeric values in that range are displayed according to the  specified format code.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("currencyStyle");
 style.setNumberFormat("$#,##0.00");
 worksheet.getRange("A1").setValue(12.5);
 worksheet.getRange("A1").setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The format code to apply as a string in the language of the user.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getOrientation()">
<h3>getOrientation</h3>
<div class="member-signature"><span class="return-type">int</span>&nbsp;<span class="element-name">getOrientation</span>()</div>
<div class="block">Gets the text orientation. Can be an integer value from -90 to 90 degrees. <p>Use this method to retrieve the text rotation stored in the style.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("angledStyle");
 style.setOrientation(45);
 worksheet.getRange("A1").setStyle(style);
 int orientation = style.getOrientation();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The text orientation, in degrees.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setOrientation(int)">
<h3>setOrientation</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setOrientation</span><wbr><span class="parameters">(int&nbsp;value)</span></div>
<div class="block">Sets the text orientation. Can be an integer value from -90 to 90 degrees. <p>Use positive values to rotate text upward and negative values to rotate text downward.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("angledStyle");
 style.setOrientation(45);
 worksheet.getRange("A1").setValue("Quarterly Sales");
 worksheet.getRange("A1").setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The text orientation, in degrees. Valid values range from -90 to 90.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getShrinkToFit()">
<h3>getShrinkToFit</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getShrinkToFit</span>()</div>
<div class="block">Gets whether the text automatically shrinks to fit in the available column  width. <p>Use this method to determine whether cells that use the style shrink  text to fit the available column width.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("shrinkStyle");
 style.setShrinkToFit(true);
 worksheet.getRange("A1").setStyle(style);
 boolean shrinkToFit = style.getShrinkToFit();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if shrink-to-fit is enabled; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setShrinkToFit(boolean)">
<h3>setShrinkToFit</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setShrinkToFit</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether the text automatically shrinks to fit in the available column  width. <p>Use this property on a style before applying the style to a range. Set  the value to  <code>true</code> to enable shrink-to-fit behavior, or <code>false</code> to keep the original font size.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("shrinkStyle");
 style.setShrinkToFit(true);
 worksheet.getRange("A1").setValue("Document Solutions For Excel");
 worksheet.getRange("A1").setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> to automatically shrink text to fit the available column width; otherwise,  <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getVerticalAlignment()">
<h3>getVerticalAlignment</h3>
<div class="member-signature"><span class="return-type"><a href="VerticalAlignment.html" title="enum class in com.grapecity.documents.excel">VerticalAlignment</a></span>&nbsp;<span class="element-name">getVerticalAlignment</span>()</div>
<div class="block">Gets the vertical alignment of the specified object. <p>Use this method to retrieve the vertical alignment stored in the  style.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("topStyle");
 style.setVerticalAlignment(VerticalAlignment.Top);
 worksheet.getRange("A1").setStyle(style);
 VerticalAlignment alignment = style.getVerticalAlignment();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The vertical alignment defined for the style.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setVerticalAlignment(com.grapecity.documents.excel.VerticalAlignment)">
<h3>setVerticalAlignment</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setVerticalAlignment</span><wbr><span class="parameters">(<a href="VerticalAlignment.html" title="enum class in com.grapecity.documents.excel">VerticalAlignment</a>&nbsp;value)</span></div>
<div class="block">Sets the vertical alignment for this style. <p>Use this method to control how content is positioned vertically when this  style is applied.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("topStyle");
 style.setVerticalAlignment(VerticalAlignment.Top);
 worksheet.getRange("A1").setValue("Name");
 worksheet.getRange("A1").setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - The vertical alignment to apply.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="getWrapText()">
<h3>getWrapText</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">getWrapText</span>()</div>
<div class="block">Gets whether text wraps automatically. <p>Use this method to determine whether text in cells that use the style is  wrapped.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("wrapStyle");
 style.setWrapText(true);
 worksheet.getRange("A1").setStyle(style);
 boolean wrapText = style.getWrapText();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if text wrapping is enabled; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="setWrapText(boolean)">
<h3>setWrapText</h3>
<div class="member-signature"><span class="return-type">void</span>&nbsp;<span class="element-name">setWrapText</span><wbr><span class="parameters">(boolean&nbsp;value)</span></div>
<div class="block">Sets whether text wraps automatically. <p>Use this method to control whether text in cells that use this style is wrapped.  The wrap text setting is part of the alignment-related style properties.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("wrapStyle");
 style.setWrapText(true);
 worksheet.getRange("A1").setValue("Long text that should wrap in the cell");
 worksheet.getRange("A1").setStyle(style);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>value</code> - <code>true</code> to enable text wrapping; otherwise, <code>false</code>.</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="delete()">
<h3>delete</h3>
<div class="member-signature"><span class="return-type">boolean</span>&nbsp;<span class="element-name">delete</span>()</div>
<div class="block">Deletes this style. <p>Use this method to remove a custom named style from the workbook. Built-in  styles cannot be deleted.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("TemporaryStyle");
 worksheet.getRange("A1").setStyle(style);
 boolean deleted = style.delete();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd><code>true</code> if the style is successfully deleted; 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 named style from the JSON string. <p>Use this method to load a named style definition from JSON, such as a  string previously generated by  <a href="#toJson()"><code>toJson()</code></a>.</p>
<pre><code data-language="Java">
 IStyle sourceStyle = workbook.getStyles().add("PriceStyle");
 sourceStyle.setIncludeNumber(true);
 sourceStyle.setNumberFormat("$#,##0.00");

 IStyle copiedStyle = workbook.getStyles().add("CopiedPriceStyle");
 copiedStyle.fromJson(sourceStyle.toJson());
 worksheet.getRange("A1").setStyle(copiedStyle);
 </code></pre></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>json</code> - The JSON string that contains the named style definition.</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 named style. <p>Use this method to serialize a named style to JSON so that it can be  stored or used later with  <a href="#fromJson(java.lang.String)"><code>fromJson(String)</code></a>.</p>
<pre><code data-language="Java">
 IStyle style = workbook.getStyles().add("PriceStyle");
 style.setIncludeNumber(true);
 style.setNumberFormat("$#,##0.00");
 worksheet.getRange("A1").setStyle(style);
 String json = style.toJson();
 </code></pre></div>
<dl class="notes">
<dt>Returns:</dt>
<dd>The JSON string that contains the named style definition.</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>