aspose.diagram
Class PageSheet

Contains elements that define the page sheet for a Page or Master element.

Example:

var aspose = aspose || {};
aspose.diagram = require("aspose.diagram");

srcVisio = new aspose.diagram.Diagram("AddingNewShape.vsdx");

// initialize a new Visio
newDiagram = new aspose.diagram.Diagram();

// add all masters from the source Visio diagram
originalMasters = srcVisio.getMasters();
for (it = originalMasters.iterator(); it.hasNext();) {
    master = it.next();
    newDiagram.addMaster(srcVisio, master.getName());
}

// get the page object from the original diagram
SrcPage = srcVisio.getPages().getPage("Page-1");
// copy themes from the source diagram
newDiagram.copyTheme(srcVisio);
// copy pagesheet of the source Visio page
newDiagram.getPages().get(0).getPageSheet().copy(SrcPage.getPageSheet());

// copy shapes from the source Visio page
for (it = SrcPage.getShapes().iterator(); it.hasNext();) {
    shape = it.next();
    newDiagram.getPages().get(0).getShapes().add(shape);
}

newDiagram.save("out-CopyShapes.vsdx", aspose.diagram.SaveFileFormat.VSDX);

Property Getters/Setters Summary
functiongetActs()
           Contains a collection of Act elements.
functiongetAnnotations()
           Contains elements that contain information about comments inserted into a document page.
functiongetConnectionABCDs()
           Contains a collection of ConnectionABCD elements.
functiongetConnections()
           Contains a collection of Connection elements.
functiongetFillStyle()
functionsetFillStyle(value)
           StyleSheet element from which the PageSheet inherits fill formatting.
functiongetForeign()
           Contains elements specifying the width and height of an object from another program used in a Microsoft Visio document. Also includes elements specifying the distance the object's image is offset within its borders.
functiongetForeignData()
           Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.
functiongetHyperlinks()
           Contains a collection of Hyperlink elements.
functiongetLayers()
           Contains a collection of Layer elements.
functiongetLineStyle()
functionsetLineStyle(value)
           StyleSheet element from which the PageSheet inherits line formatting.
functiongetPageLayout()
           Contains Diagram that control the page layout settings for shapes and connectors, such as spacing between all shapes on the page, spacing between all connectors on the page, and routing style for all connectors on the page.
functiongetPageProps()
           Contains Diagram that control page attributes, such as the page width, height, and scale.
functiongetPrintProps()
           Contains elements that control how the drawing page is formatted (appears) on the printer page.
functiongetProps()
           Contains a collection of Prop elements.
functiongetRulerGrid()
           Contains elements that specify the settings of the page's rulers and grid.
functiongetScratchs()
           Contains a collection of Scratch elements.
functiongetSmartTagDefs()
           Contains a collection of SmartTagDef elements.
functiongetTextStyle()
functionsetTextStyle(value)
           StyleSheet element from which the PageSheet inherits text formatting.
functiongetUniqueID()
           A GUID (globally unique identifier) for the element.
functiongetUsers()
           Contains a collection of User elements.
functiongetXForm()
           Contains elements specifying general positioning information about a shape.
 
Method Summary
functioncopy(source)
           Copies pagesheet from a source object.
 

Property Getters/Setters Detail

getLineStyle/setLineStyle : StyleSheet 

function getLineStyle() / function setLineStyle(value)
StyleSheet element from which the PageSheet inherits line formatting.

getFillStyle/setFillStyle : StyleSheet 

function getFillStyle() / function setFillStyle(value)
StyleSheet element from which the PageSheet inherits fill formatting.

getTextStyle/setTextStyle : StyleSheet 

function getTextStyle() / function setTextStyle(value)
StyleSheet element from which the PageSheet inherits text formatting.

getUniqueID : UUID 

function getUniqueID()
A GUID (globally unique identifier) for the element.

getXForm : XForm 

function getXForm()
Contains elements specifying general positioning information about a shape.

getPageProps : PageProps 

function getPageProps()
Contains Diagram that control page attributes, such as the page width, height, and scale.

getRulerGrid : RulerGrid 

function getRulerGrid()
Contains elements that specify the settings of the page's rulers and grid.

getPageLayout : PageLayout 

function getPageLayout()
Contains Diagram that control the page layout settings for shapes and connectors, such as spacing between all shapes on the page, spacing between all connectors on the page, and routing style for all connectors on the page.

getPrintProps : PrintProps 

function getPrintProps()
Contains elements that control how the drawing page is formatted (appears) on the printer page.

getScratchs : ScratchCollection 

function getScratchs()
Contains a collection of Scratch elements.

getConnections : ConnectionCollection 

function getConnections()
Contains a collection of Connection elements.

getConnectionABCDs : ConnectionABCDCollection 

function getConnectionABCDs()
Contains a collection of ConnectionABCD elements.

getActs : ActCollection 

function getActs()
Contains a collection of Act elements.

getLayers : LayerCollection 

function getLayers()
Contains a collection of Layer elements.

Example:

var aspose = aspose || {};
aspose.diagram = require("aspose.diagram");

diagram = new aspose.diagram.Diagram("Layers.vsdx");
// get Visio page
page = diagram.getPages().getPage("Page-1");
layers = page.getPageSheet().getLayers();
// iterate through the layers
for (var it = layers.iterator(); it.hasNext();) {
    layer = it.next();
    console.log("Name: " + layer.getName().getValue());
    console.log("Visibility: " + layer.getVisible().getValue());
    console.log("Status: " + layer.getStatus().getValue());
}

getUsers : UserCollection 

function getUsers()
Contains a collection of User elements.

getProps : PropCollection 

function getProps()
Contains a collection of Prop elements.

getHyperlinks : HyperlinkCollection 

function getHyperlinks()
Contains a collection of Hyperlink elements.

getSmartTagDefs : SmartTagDefCollection 

function getSmartTagDefs()
Contains a collection of SmartTagDef elements.

getAnnotations : AnnotationCollection 

function getAnnotations()
Contains elements that contain information about comments inserted into a document page.

Example:

var aspose = aspose || {};
aspose.diagram = require("aspose.diagram");

var diagram = new aspose.diagram.Diagram("Drawing1.vsdx");
// get collection of the annotations
annotations = diagram.getPages().getPage("Page-1").getPageSheet().getAnnotations();
for (var it = annotations.iterator(); it.hasNext();) {
    annotation = it.next();
    var comment = annotation.getComment().getValue();
    comment += "Updation mark";
    annotation.getComment().setValue(comment);
}
diagram.save("out-EditPageLevelCommentInVisio.vsdx", aspose.diagram.SaveFileFormat.VSDX);

getForeign : Foreign 

function getForeign()
Contains elements specifying the width and height of an object from another program used in a Microsoft Visio document. Also includes elements specifying the distance the object's image is offset within its borders.

getForeignData : ForeignData 

function getForeignData()
Contains a MIME (Multipurpose Internet Mail Extensions) encoded BLOB of picture data, such as Windows metafile, bitmap, or OLE data.

Method Detail

copy

function copy(source)
Copies pagesheet from a source object.
Parameters:
source: PageSheet - source pagesheet.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.