<!DOCTYPE html><htmlclass="default"lang="en"data-base=".."><head><metacharset="utf-8"/><metahttp-equiv="x-ua-compatible"content="IE=edge"/><title>HeaderFooterReferenceType | docx</title><metaname="description"content="Documentation for docx"/><metaname="viewport"content="width=device-width, initial-scale=1"/><linkrel="stylesheet"href="../assets/style.css"/><linkrel="stylesheet"href="../assets/highlight.css"/><scriptdefersrc="../assets/main.js"></script><scriptasyncsrc="../assets/icons.js"id="tsd-icons-script"></script><scriptasyncsrc="../assets/search.js"id="tsd-search-script"></script><scriptasyncsrc="../assets/navigation.js"id="tsd-nav-script"></script><scriptasyncsrc="../assets/hierarchy.js"id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme=localStorage.getItem("tsd-theme")||"os";document.body.style.display="none";setTimeout(()=>app?app.showPage():document.body.style.removeProperty("display"),500)</script><headerclass="tsd-page-toolbar"><divclass="tsd-toolbar-contents container"><divclass="table-cell"id="tsd-search"><divclass="field"><labelfor="tsd-search-field"class="tsd-widget tsd-toolbar-icon search no-caption"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="../assets/icons.svg#icon-search"></use></svg></label><inputtype="text"id="tsd-search-field"aria-label="Search"/></div><divclass="field"><divid="tsd-toolbar-links"></div></div><ulclass="results"><liclass="state loading">Preparing search index...</li><liclass="state failure">The search index is not available</li></ul><ahref="../index.html"class="title">docx</a></div><divclass="table-cell"id="tsd-widgets"><ahref="#"class="tsd-widget tsd-toolbar-icon menu no-caption"data-toggle="menu"aria-label="Menu"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><divclass="container container-main"><divclass="col-content"><divclass="tsd-page-title"><ulclass="tsd-breadcrumb"><li><ahref="../modules.html">docx</a></li><li><ahref="HeaderFooterReferenceType.html">HeaderFooterReferenceType</a></li></ul><h1>Variable HeaderFooterReferenceType<codeclass="tsd-tag">Const</code></h1></div><divclass="tsd-signature"><spanclass="tsd-kind-variable">HeaderFooterReferenceType</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-symbol">{</span><spanclass="tsd-kind-property">DEFAULT</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">"default"</span><spanclass="tsd-signature-symbol">;</span><spanclass="tsd-kind-property">EVEN</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">"even"</span><spanclass="tsd-signature-symbol">;</span><spanclass="tsd-kind-property">FIRST</span><spanclass="tsd-signature-symbol">:</span><spanclass="tsd-signature-type">"first"</span><spanclass="tsd-signature-symbol">}</span><spanclass="tsd-signature-symbol"> = ...</span></div><divclass="tsd-comment tsd-typography"><p>This simple type specifies the possible types of headers and footers which may be specified for a given header or footer reference in a document. This value determines the page(s) on which the current header or footer shall be displayed.</p>
</div><divclass="tsd-type-declaration"><h4>Type declaration</h4><ulclass="tsd-parameters"><liclass="tsd-parameter"><h5><codeclass="tsd-tag">Readonly</code><spanclass="tsd-kind-property">DEFAULT</span><aid="__typedefault"class="tsd-anchor"></a><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">"default"</span></h5><divclass="tsd-comment tsd-typography"><p>Specifies that this header or footer shall appear on every page in this section which is not overridden with a specific <code>even</code> or <code>first</code> page header/footer. In a section with all three types specified, this type shall be used on all odd numbered pages (counting from the <code>first</code> page in the section, not the section numbering).</p>
</div><divclass="tsd-comment tsd-typography"></div></li><liclass="tsd-parameter"><h5><codeclass="tsd-tag">Readonly</code><spanclass="tsd-kind-property">EVEN</span><aid="__typeeven"class="tsd-anchor"></a><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">"even"</span></h5><divclass="tsd-comment tsd-typography"><p>Specifies that this header or footer shall appear on all even numbered pages in this section (counting from the first page in the section, not the section numbering). The appearance of this header or footer is contingent on the setting of the <code>evenAndOddHeaders</code> element (§2.10.1).</p>
</div><divclass="tsd-comment tsd-typography"></div></li><liclass="tsd-parameter"><h5><codeclass="tsd-tag">Readonly</code><spanclass="tsd-kind-property">FIRST</span><aid="__typefirst"class="tsd-anchor"></a><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">"first"</span></h5><divclass="tsd-comment tsd-typography"><p>Specifies that this header or footer shall appear on the first page in this section. The appearance of this header or footer is contingent on the setting of the <code>titlePg</code> element (§2.10.6).</p>