new User()

Constructor.

Example

var aspose = aspose || {};
aspose.diagram = require("aspose.diagram");
diagram = new aspose.diagram.Diagram("TextBoxes.vsdx");
// get page by name
page = diagram.getPages().getPage("Page-1");
// get shape by id
shape = page.getShapes().getShape(2);
// initialize user object
user = new aspose.diagram.User();
user.setName("UserDefineCell");
user.getValue().setVal("800");
// add user-defined cell
shape.getUsers().add(user);
diagram.save("out-CreateUserDefinedCellInShapeSheet.vsdx", aspose.diagram.SaveFileFormat.VSDX);

Methods

deepClone() → Object

Creates deep copy of this instance.

Returns

Object 

getDel()

A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.

getID()

The unique ID of the element within its parent element.

getName()

The name of the element.

getNameU()

The universal name of the element.

getPrompt()

It specifies a descriptive prompt or comment for the user-defined element.

getValue()

Contains solution-specific, well-formed XML data that is prefixed in an explicit namespace and is stored with a document.

setDel()

A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.

setID()

The unique ID of the element within its parent element.

setName()

The name of the element.

setNameU()

The universal name of the element.

setPrompt()

It specifies a descriptive prompt or comment for the user-defined element.

setValue()

Contains solution-specific, well-formed XML data that is prefixed in an explicit namespace and is stored with a document.