Example:
var aspose = aspose || {}; aspose.diagram = require("aspose.diagram"); diagram = new aspose.diagram.Diagram("Introduction.vsdx"); // Set some summary information about the diagram diagram.getDocumentProps().setCreator("Farhan"); diagram.getDocumentProps().setCompany("Aspose"); diagram.getDocumentProps().setCategory("Drawing 2D"); diagram.getDocumentProps().setManager("Sergey Polshkov"); diagram.getDocumentProps().setTitle("Aspose Title"); diagram.getDocumentProps().setTimeCreated(aspose.diagram.DateTime.getNow()); diagram.getDocumentProps().setSubject("Visio Diagram"); diagram.getDocumentProps().setTemplate("Aspose Template"); // Write the updated file to the disk in VSDX file format diagram.save("out-SetVisioProperties_Out.vsdx", aspose.diagram.SaveFileFormat.VSDX);
Property Getters/Setters Summary | ||
---|---|---|
method | getAlternateNames() | |
method | setAlternateNames(value) | |
Specifies the alternate names for a document. | ||
method | getBuildNumberCreated() | |
method | setBuildNumberCreated(value) | |
Contains the full build number of the instance used to create the document. | ||
method | getBuildNumberEdited() | |
method | setBuildNumberEdited(value) | |
Contains the build number of the instance last used to edit the document. | ||
method | getCategory() | |
method | setCategory(value) | |
Specifies the descriptive text for the type of drawing, such as flowchart or office layout. This text can also be entered in the Microsoft Visio user interface in the Category box in the Properties dialog box. | ||
method | getCompany() | |
method | setCompany(value) | |
Contains user-entered information identifying the company creating the drawing or the company the drawing is being created for. Maximum length is 63 characters. | ||
method | getCreator() | |
method | setCreator(value) | |
Identifies who created or last updated the file. The maximum length is 63 characters. | ||
method | getCustomProps() | |
Collection of CustomProp.
|
||
method | getDesc() | |
method | setDesc(value) | |
Contains a descriptive text string for a document. Use this element to store important information about the document, such as its purpose, recent changes, or pending changes. The maximum is 191 characters. | ||
method | getHyperlinkBase() | |
method | setHyperlinkBase(value) | |
Contains the path to be used for relative hyperlinks (hyperlinks for which the linked file location is described in relation to the Microsoft Visio diagram). By default, a hyperlink path is relative to the current document unless a different path is specified in this element. Maximum length is 256 characters. | ||
method | getKeywords() | |
method | setKeywords(value) | |
Contains a text string that identifies topics or other important information about the file, such as project name, client name, or version number. The maximum string length is 63 characters. | ||
method | getLanguage() | |
method | setLanguage(value) | |
Specifies the language | ||
method | getManager() | |
method | setManager(value) | |
Contains a user-entered text string identifying the person in charge of the project or department. The maximum length is 63 characters. | ||
method | getPreviewPicture() | |
method | setPreviewPicture(value) | |
Contains a metafile stream that serves as a preview of the document. | ||
method | getSubject() | |
method | setSubject(value) | |
Contains a user-defined text string that describes the contents of the document. Maximum length is 63 characters. | ||
method | getTemplate() | |
method | setTemplate(value) | |
Contains a string value specifying the file name of the template from which the document was created. | ||
method | getTimeCreated() | |
method | setTimeCreated(value) | |
Contains date and time value indicating when the document was created. | ||
method | getTimeEdited() | |
method | setTimeEdited(value) | |
Contains date and time value indicating when the document was last edited. | ||
method | getTimePrinted() | |
method | setTimePrinted(value) | |
Contains date and time value indicating when the document was last printed. | ||
method | getTimeSaved() | |
method | setTimeSaved(value) | |
Contains date and time value indicating when the document was last saved. | ||
method | getTitle() | |
method | setTitle(value) | |
Contains a user-defined text string that serves as a descriptive title for the document. Maximum length is 63 characters. |
String getTitle() / setTitle(value)
String getSubject() / setSubject(value)
String getCreator() / setCreator(value)
String getManager() / setManager(value)
String getCompany() / setCompany(value)
String getCategory() / setCategory(value)
String getKeywords() / setKeywords(value)
String getLanguage() / setLanguage(value)
String getDesc() / setDesc(value)
String getHyperlinkBase() / setHyperlinkBase(value)
String getAlternateNames() / setAlternateNames(value)
String getTemplate() / setTemplate(value)
String getBuildNumberCreated() / setBuildNumberCreated(value)
String getBuildNumberEdited() / setBuildNumberEdited(value)
byte[] getPreviewPicture() / setPreviewPicture(value)
DateTime getTimeCreated() / setTimeCreated(value)
DateTime getTimeSaved() / setTimeSaved(value)
DateTime getTimeEdited() / setTimeEdited(value)
DateTime getTimePrinted() / setTimePrinted(value)
CustomPropCollection getCustomProps()