Example:
var aspose = aspose || {}; aspose.diagram = require("aspose.diagram"); diagram = new aspose.diagram.Diagram("ManageHeadersandFooters.vsdx"); // add page number at the right corner of header diagram.getHeaderFooter().setHeaderRight("&p"); // set text at the center diagram.getHeaderFooter().setHeaderCenter("Center of the header"); // set text at the left side diagram.getHeaderFooter().setHeaderLeft("Left of the header"); // add text at the right corner of footer diagram.getHeaderFooter().setFooterRight("Right of the footer"); // set text at the center diagram.getHeaderFooter().setFooterCenter("Center of the footer"); // set text at the left side diagram.getHeaderFooter().setFooterLeft("Left of the footer"); // set header & footer color diagram.getHeaderFooter().setHeaderFooterColor(aspose.diagram.Color.getRed()); // set text font properties diagram.getHeaderFooter().getHeaderFooterFont().setItalic(aspose.diagram.BOOL.TRUE); diagram.getHeaderFooter().getHeaderFooterFont().setUnderline(aspose.diagram.BOOL.FALSE); diagram.save("out-ManageHeadersandFooters.vsdx", aspose.diagram.SaveFileFormat.VSDX);
Property Getters/Setters Summary | ||
---|---|---|
method | getFooterCenter() | |
method | setFooterCenter(value) | |
Contains the text string that appears in the center portion of a document's footer. | ||
method | getFooterLeft() | |
method | setFooterLeft(value) | |
Contains the text string that appears in the left portion of a document's footer. | ||
method | getFooterMargin() | |
method | setFooterMargin(value) | |
Specifies the margin of a document's footer. | ||
method | getFooterRight() | |
method | setFooterRight(value) | |
Contains the text string that appears in the right portion of a document's footer. | ||
method | getHeaderCenter() | |
method | setHeaderCenter(value) | |
Contains the text string that appears in the center portion of a document's header. | ||
method | getHeaderFooterColor() | |
method | setHeaderFooterColor(value) | |
The RGB value of the text color for the header and footer. | ||
method | getHeaderFooterFont() | |
Specifies the font used for the header and footer text.
|
||
method | getHeaderLeft() | |
method | setHeaderLeft(value) | |
Contains the text string that appears in the left portion of a document's header. | ||
method | getHeaderMargin() | |
method | setHeaderMargin(value) | |
Specifies the margin of a document's footer. | ||
method | getHeaderRight() | |
method | setHeaderRight(value) | |
Contains the text string that appears in the right portion of a document's header. |
Margin getHeaderMargin() / setHeaderMargin(value)
Margin getFooterMargin() / setFooterMargin(value)
Color getHeaderFooterColor() / setHeaderFooterColor(value)
String getHeaderLeft() / setHeaderLeft(value)
String getHeaderCenter() / setHeaderCenter(value)
String getHeaderRight() / setHeaderRight(value)
String getFooterLeft() / setFooterLeft(value)
String getFooterCenter() / setFooterCenter(value)
String getFooterRight() / setFooterRight(value)
HeaderFooterFont getHeaderFooterFont()