asposediagram.api

Class PrintPageOrientation

Determines whether the page is printed in portrait or landscape orientation.

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
methodgetUfe()
Specifies attributes of an element.
methodgetValue()
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
methodequals(value)
Are objects equal.
methodhashCode()
Serves as a hash function for a particular type.
 

    • Constructor Detail

      • PrintPageOrientation

        PrintPageOrientation(pp, value)
        Constructor.
        Parameters:
        value: int - A PrintPageOrientationValue value.
    • Property Getters/Setters Detail

      • getValue/setValue : int 

        int getValue() / setValue(value)
        
        Determines whether the page is printed in portrait or landscape orientation. The value of the property is PrintPageOrientationValue integer constant.
    • Method Detail

      • equals

        boolean equals(value)
        Are objects equal.
        Parameters:
        value: Object -
        Returns:
      • hashCode

        int hashCode()
        Serves as a hash function for a particular type.
        Returns: