Methods

copy(source)

Copies pagesheet from a source object.

Parameter

Name Type Optional Description

source

PageSheet

 

source pagesheet.

getActs()

Contains a collection of Act elements.

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

getConnectionABCDs()

Contains a collection of ConnectionABCD elements.

getConnections()

Contains a collection of Connection elements.

getFillStyle()

StyleSheet element from which the PageSheet inherits fill formatting.

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

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

Contains a collection of Hyperlink elements.

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

getLineStyle()

StyleSheet element from which the PageSheet inherits line formatting.

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.

getPageProps()

Contains Diagram that control page attributes, such as the page width, height, and scale.

getPrintProps()

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

getProps()

Contains a collection of Prop elements.

getRulerGrid()

Contains elements that specify the settings of the page's rulers and grid.

getScratchs()

Contains a collection of Scratch elements.

getSmartTagDefs()

Contains a collection of SmartTagDef elements.

getTextStyle()

StyleSheet element from which the PageSheet inherits text formatting.

getUniqueID()

A GUID (globally unique identifier) for the element.

getUsers()

Contains a collection of User elements.

getXForm()

Contains elements specifying general positioning information about a shape.

setFillStyle()

StyleSheet element from which the PageSheet inherits fill formatting.

setLineStyle()

StyleSheet element from which the PageSheet inherits line formatting.

setTextStyle()

StyleSheet element from which the PageSheet inherits text formatting.