|
Foxit PDF SDK
|
Public 成员函数 | |
| HeaderFooterContentGenerator () | |
| Constructor. | |
| HeaderFooterContentGenerator (HeaderFooterContentGenerator other) | |
| Constructor, with another header-footer content generator object. 更多... | |
| void | AddDate (HeaderFooterContentGenerator.DateFormatType format_type) |
| Add a format string for a specified date format type. 更多... | |
| void | AddPageNumber (HeaderFooterContentGenerator.PageNumberFormat format_type) |
| Add a format string for a specified page number format type. 更多... | |
| void | AddString (string new_string) |
| Add a string. 更多... | |
| void | Clear () |
| Clear strings (including format strings) which have been added to current content generator. 更多... | |
| string | GenerateContent () |
| Generate a final string which can be used as header-footer content. 更多... | |
| bool | IsEmpty () |
| Check whether current object is empty or not. 更多... | |
This class is the generator for header-footer content. It can help user to combine dates in specified format, page numbers in specified format and any customized text content to one string which can be used as header-footer content.
日期格式类型的枚举。
此枚举的值可以单独使用。
页码格式类型的枚举。
此枚举的值可以单独使用。
|
inline |
Constructor, with another header-footer content generator object.
| [in] | other | Another header-footer content generator object. |
|
inline |
Add a format string for a specified date format type.
Header-footer content can contain format string for date. The date format string will be replaced by actual date time in specified format when the header-footer is used in PDF document.
| [in] | format_type | Date format type. Please refer to values starting from foxit.pdf.HeaderFooterContentGenerator.DateFormatType.e_DateFormatMSlashD and this should be one of these values. |
|
inline |
Add a format string for a specified page number format type.
Header-footer content can contain format string for page number. The page number format string will be replaced by page number in specified format when the header-footer is used in PDF document.
| [in] | format_type | Page number format type. Please refer to values starting from foxit.pdf.HeaderFooterContentGenerator.PageNumberFormat.e_PageNumberFormatDefault and this should be one of these values. |
|
inline |
Add a string.
| [in] | new_string | A string. |
|
inline |
Clear strings (including format strings) which have been added to current content generator.
After this function is called, current content generator will be the same as a newly constructed object.
|
inline |
Generate a final string which can be used as header-footer content.
|
inline |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.