aspose.diagram
Class User

Contains a work area for entering formulas in user-specific elements that are referred to by other elements and add-on tools.

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

Constructor Summary
User()
           Constructor.
 
Property Getters/Setters Summary
functiongetDel()
functionsetDel(value)
           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.
functiongetID()
functionsetID(value)
           The unique ID of the element within its parent element.
functiongetName()
functionsetName(value)
           The name of the element.
functiongetNameU()
functionsetNameU(value)
           The universal name of the element.
functiongetPrompt()
functionsetPrompt(value)
           It specifies a descriptive prompt or comment for the user-defined element.
functiongetValue()
functionsetValue(value)
           Contains solution-specific, well-formed XML data that is prefixed in an explicit namespace and is stored with a document.
 
Method Summary
functiondeepClone()
           Creates deep copy of this instance.
 

Constructor Detail

User

function User()
Constructor.

Property Getters/Setters Detail

getValue/setValue : Value 

function getValue() / function setValue(value)
Contains solution-specific, well-formed XML data that is prefixed in an explicit namespace and is stored with a document.

getName/setName : String 

function getName() / function setName(value)
The name of the element.

getNameU/setNameU : String 

function getNameU() / function setNameU(value)
The universal name of the element.

getID/setID : Number 

function getID() / function setID(value)
The unique ID of the element within its parent element.

getDel/setDel : Number 

function getDel() / function setDel(value)
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.

getPrompt/setPrompt : Str2Value 

function getPrompt() / function setPrompt(value)
It specifies a descriptive prompt or comment for the user-defined element.

Method Detail

deepClone

function deepClone()
Creates deep copy of this instance.
Returns:

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