public final class HeaderFooterSection extends Object
header or footer
section.Constructor and Description |
---|
HeaderFooterSection()
HeaderFooterSection constructor. |
Modifier and Type | Method and Description |
---|---|
HeaderFooterSection |
append(HeaderFooterFieldType fieldType)
Appends special header/footer field to
content . |
HeaderFooterSection |
append(HeaderFooterFieldType fieldType,
ExcelFont font)
Appends special header/footer field to
content . |
HeaderFooterSection |
append(String text)
Appends text to
content . |
HeaderFooterSection |
append(String text,
ExcelFont font)
Appends text to
content . |
HeaderFooterSection |
appendPicture(InputStream pictureStream,
ExcelPictureFormat imageFormat)
Appends picture to this
HeaderFooterSection instance. |
HeaderFooterSection |
appendPicture(InputStream pictureStream,
ExcelPictureFormat imageFormat,
int width,
int height)
Appends picture to this
HeaderFooterSection instance. |
HeaderFooterSection |
appendPicture(String fileName)
Appends picture to this
HeaderFooterSection instance. |
HeaderFooterSection |
appendPicture(String fileName,
int width,
int height)
Appends picture to this
HeaderFooterSection instance. |
String |
getContent()
Gets
header/footer section content. |
void |
setContent(String value)
Sets
header/footer section content. |
public HeaderFooterSection()
HeaderFooterSection
constructor.public HeaderFooterSection append(HeaderFooterFieldType fieldType)
content
.fieldType
- Special Header/Footer field.public HeaderFooterSection append(HeaderFooterFieldType fieldType, ExcelFont font)
content
.fieldType
- Special Header/Footer field.font
- Desired ExcelFont
font.public HeaderFooterSection append(String text)
content
.text
- Text to append.public HeaderFooterSection append(String text, ExcelFont font)
content
.text
- Text to append.font
- Desired ExcelFont
font.public HeaderFooterSection appendPicture(InputStream pictureStream, ExcelPictureFormat imageFormat) throws IOException
HeaderFooterSection
instance.pictureStream
- Stream of the picture to be added.imageFormat
- Picture format.IOException
public HeaderFooterSection appendPicture(InputStream pictureStream, ExcelPictureFormat imageFormat, int width, int height) throws IOException
HeaderFooterSection
instance.pictureStream
- Stream of the picture to be added.imageFormat
- Picture format.width
- Picture width (in pixels).height
- Picture height (in pixels).IOException
public HeaderFooterSection appendPicture(String fileName) throws IOException
HeaderFooterSection
instance.fileName
- The fileName of the file that contains picture.IOException
public HeaderFooterSection appendPicture(String fileName, int width, int height) throws IOException
HeaderFooterSection
instance.fileName
- The fileName of the file that contains picture.width
- Picture width (in pixels).height
- Picture height (in pixels).IOException
public String getContent()
header/footer
section content.
The header string may contain special commands, for example placeholders for the page number, current date, or text formatting attributes. These fields are represented by single letters (exception: font name and size) with a leading ampersand. If the ampersand is part of the regular header text, it will be duplicated.
For more information consult Microsoft Excel documentation.
public void setContent(String value)
header/footer
section content.
The header string may contain special commands, for example placeholders for the page number, current date, or text formatting attributes. These fields are represented by single letters (exception: font name and size) with a leading ampersand. If the ampersand is part of the regular header text, it will be duplicated.
For more information consult Microsoft Excel documentation.
© GemBox Ltd. — All rights reserved.