new PrintPageOrientation(value)

Constructor.

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);

Parameter

Name Type Optional Description

value

 

 

PrintPageOrientationValue

Methods

deepClone() → Object

Creates deep copy of this instance.

Returns

Object 

equals(value) → boolean

Are objects equal.

Parameter

Name Type Optional Description

value

Object

 

Returns

boolean 

getUfe()

Specifies attributes of an element.

getValue()

Determines whether the page is printed in portrait or landscape orientation. The value of the property is PrintPageOrientationValue integer constant.

hashCode() → Number

Serves as a hash function for a particular type.

Returns

Number 

setValue()

Determines whether the page is printed in portrait or landscape orientation. The value of the property is PrintPageOrientationValue integer constant.