public final class HSSFHeader extends HeaderFooter implements Header
The header works by having a left, center, and right side. The total cannot be more that 255 bytes long. One uses this class by getting the HSSFHeader from HSSFSheet and then getting or setting the left, center, and right side. For special things (such as page numbers and date), one can use a the methods that return the characters used to represent these. One can also change the fonts by using similar methods.
(读取和操作标题的类。标头通过具有左侧、中心和右侧来工作。总长度不能超过 255 个字节。通过从 HSSFSheet 获取 HSSFHeader 然后获取或设置左侧、中心和右侧来使用此类。对于特殊事物(例如页码和日期),可以使用返回用于表示这些的字符的方法。也可以使用类似的方法更改字体。)Modifier | Constructor and Description |
---|---|
protected |
HSSFHeader(PageSettingsBlock psb) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getRawText() |
protected void |
setHeaderFooterText(java.lang.String text) |
date, endBold, endDoubleUnderline, endUnderline, file, font, fontSize, getCenter, getLeft, getRight, numPages, page, setCenter, setLeft, setRight, startBold, startDoubleUnderline, startUnderline, stripFields, tab, time
protected HSSFHeader(PageSettingsBlock psb)
protected java.lang.String getRawText()
getRawText
in class
HeaderFooter
(HeaderFooter 类中的 getRawText)
null
.
(内部文本表示(结合中心、左侧和右侧部分)。如果没有设置页眉或页脚,则可能为空字符串。从不为空。)
protected void setHeaderFooterText(java.lang.String text)
setHeaderFooterText
in class
HeaderFooter
(类 HeaderFooter 中的 setHeaderFooterText)
text
- the new header footer text (contains mark-up tags). Possibly empty string never
null
(text - 新的页眉页脚文本(包含标记)。可能为空字符串永远不会为空)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.