public class XSSFHeaderFooterProperties
extends java.lang.Object
All Header/Footer properties for a sheet are scoped to the sheet. This includes Different First Page, and Different Even/Odd. These properties can be set or unset explicitly in this class. Note that while Scale With Document and Align With Margins default to unset, Different First, and Different Even/Odd are updated automatically as headers and footers are added and removed.
(工作表的所有页眉/页脚属性都在工作表范围内。这包括不同的首页和不同的偶数/奇数。这些属性可以在此类中显式设置或取消设置。请注意,虽然 Scale With Document 和 Align With Margins 默认未设置,但在添加和删除页眉和页脚时会自动更新不同的第一个和不同的偶数/奇数。)Constructor and Description |
---|
XSSFHeaderFooterProperties(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHeaderFooter headerFooter)
Create an instance of XSSFHeaderFooterProperties from the supplied XML bean
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAlignWithMargins()
returns alignWithMargins attribute
(返回 alignWithMargins 属性)
|
boolean |
getDifferentFirst()
returns differentFirst attribute
(返回不同的First属性)
|
boolean |
getDifferentOddEven()
returns differentOddEven attribute
(返回不同的OddEven 属性)
|
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHeaderFooter |
getHeaderFooter()
Returns the underlying CTHeaderFooter xml bean
(返回底层 CTHeaderFooter xml bean)
|
boolean |
getScaleWithDoc()
returns scaleWithDoc attribute
(返回 scaleWithDoc 属性)
|
void |
removeAlignWithMargins()
remove alignWithMargins attribute
(移除 alignWithMargins 属性)
|
void |
removeDifferentFirst()
remove differentFirst attribute
(移除 differentFirst 属性)
|
void |
removeDifferentOddEven()
remove differentOddEven attribute
(删除不同的OddEven 属性)
|
void |
removeScaleWithDoc()
remove scaleWithDoc attribute
(删除 scaleWithDoc 属性)
|
void |
setAlignWithMargins(boolean flag)
set alignWithMargins attribute
(设置 alignWithMargins 属性)
|
void |
setDifferentFirst(boolean flag)
set differentFirst attribute
(设置不同的First属性)
|
void |
setDifferentOddEven(boolean flag)
set differentOddEven attribute
(设置不同的OddEven 属性)
|
void |
setScaleWithDoc(boolean flag)
set scaleWithDoc attribute
(设置 scaleWithDoc 属性)
|
public XSSFHeaderFooterProperties(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHeaderFooter headerFooter)
headerFooter
-
(页眉页脚 -)
@Internal public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTHeaderFooter getHeaderFooter()
public boolean getAlignWithMargins()
public boolean getDifferentFirst()
public boolean getDifferentOddEven()
public boolean getScaleWithDoc()
public void setAlignWithMargins(boolean flag)
public void setDifferentFirst(boolean flag)
public void setDifferentOddEven(boolean flag)
public void setScaleWithDoc(boolean flag)
public void removeAlignWithMargins()
public void removeDifferentFirst()
public void removeDifferentOddEven()
public void removeScaleWithDoc()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.