Example:
var aspose = aspose || {}; aspose.diagram = require("aspose.diagram"); diagram = new aspose.diagram.Diagram("Pages.vsdx"); // get Visio page page = diagram.getPages().getPage("Flow 1"); // page orientation page.getPageSheet().getPrintProps().getPrintPageOrientation().setValue(aspose.diagram.PrintPageOrientationValue.LANDSCAPE); diagram.save("out-SetPageOrientation.vsdx", aspose.diagram.SaveFileFormat.VSDX);
Constructor Summary |
---|
PrintPageOrientation(pp, value)
Constructor. |
Property Getters/Setters Summary | ||
---|---|---|
method | getUfe() | |
Specifies attributes of an element.
|
||
method | getValue() | |
method | setValue(value) | |
Determines whether the page is printed in portrait or landscape orientation. The value of the property is PrintPageOrientationValue integer constant. |
Method Summary | ||
---|---|---|
method | equals(value) | |
Are objects equal.
|
||
method | hashCode() | |
Serves as a hash function for a particular type.
|
PrintPageOrientation(pp, value)
value: int
- A int getValue() / setValue(value)
UnitFormulaErr getUfe()