var Visio; (function (Visio) { var Application = (function(_super) { __extends(Application, _super); function Application() { /// Represents the Application. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// Show or Hide the standard toolbars. [Api set: 1.1] } Application.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } Application.prototype.set = function() { /// /// Sets multiple properties on the object at the same time, based on JSON input. /// Properties described by the Visio.Interfaces.ApplicationUpdateData interface. /// Options of the form { throwOnReadOnly?: boolean } ///
/// * throwOnReadOnly: Throw an error if the passed-in property list includes read-only properties (default = true). /// ///
/// /// Sets multiple properties on the object at the same time, based on an existing loaded object. /// An existing Application object, with properties that have already been loaded and synced. /// } return Application; })(OfficeExtension.ClientObject); Visio.Application = Application; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Interfaces; (function (Interfaces) { var BoundingBox = (function() { function BoundingBox() { /// Represents the BoundingBox of the shape. [Api set: 1.1] /// The distance between the top and bottom edges of the bounding box of the shape, excluding any data graphics associated with the shape. [Api set: 1.1] /// The distance between the left and right edges of the bounding box of the shape, excluding any data graphics associated with the shape. [Api set: 1.1] /// An integer that specifies the x-coordinate of the bounding box. [Api set: 1.1] /// An integer that specifies the y-coordinate of the bounding box. [Api set: 1.1] } return BoundingBox; })(); Interfaces.BoundingBox.__proto__ = null; Interfaces.BoundingBox = BoundingBox; })(Interfaces = Visio.Interfaces || (Visio.Interfaces = { __proto__: null})); })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Comment = (function(_super) { __extends(Comment, _super); function Comment() { /// Represents the Comment. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// A string that specifies the label of the shape data item. [Api set: 1.1] /// A string that specifies the format of the shape data item. [Api set: 1.1] /// A string that specifies the value of the shape data item. [Api set: 1.1] } Comment.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } Comment.prototype.set = function() { /// /// Sets multiple properties on the object at the same time, based on JSON input. /// Properties described by the Visio.Interfaces.CommentUpdateData interface. /// Options of the form { throwOnReadOnly?: boolean } ///
/// * throwOnReadOnly: Throw an error if the passed-in property list includes read-only properties (default = true). /// ///
/// /// Sets multiple properties on the object at the same time, based on an existing loaded object. /// An existing Comment object, with properties that have already been loaded and synced. /// } return Comment; })(OfficeExtension.ClientObject); Visio.Comment = Comment; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var CommentCollection = (function(_super) { __extends(CommentCollection, _super); function CommentCollection() { /// Represents the CommentCollection for a given Shape. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// Gets the loaded child items in this collection. } CommentCollection.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } CommentCollection.prototype.getCount = function() { /// /// Gets the number of Shape Data Items. [Api set: 1.1] /// /// var result = new OfficeExtension.ClientResult(); result.__proto__ = null; result.value = 0; return result; } CommentCollection.prototype.getItem = function(key) { /// /// Gets the Comment using its name. [Api set: 1.1] /// /// Key is the name of the Comment to be retrieved. /// } return CommentCollection; })(OfficeExtension.ClientObject); Visio.CommentCollection = CommentCollection; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Interfaces; (function (Interfaces) { var DataRefreshCompleteEventArgs = (function() { function DataRefreshCompleteEventArgs() { /// Provides information about the document that raised the DataRefreshComplete event. [Api set: 1.1] /// Gets the document object that raised the DataRefreshComplete event. [Api set: 1.1] /// Gets the success/failure of the DataRefreshComplete event. [Api set: 1.1] } return DataRefreshCompleteEventArgs; })(); Interfaces.DataRefreshCompleteEventArgs.__proto__ = null; Interfaces.DataRefreshCompleteEventArgs = DataRefreshCompleteEventArgs; })(Interfaces = Visio.Interfaces || (Visio.Interfaces = { __proto__: null})); })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Document = (function(_super) { __extends(Document, _super); function Document() { /// Represents the Document class. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// Represents a Visio application instance that contains this document. Read-only. [Api set: 1.1] /// Represents a collection of pages associated with the document. Read-only. [Api set: 1.1] /// Returns the DocumentView object. [Api set: 1.1] /// Occurs when the data is refreshed in the diagram. [Api set: 1.1] /// Occurs when the page is finished loading. [Api set: 1.1] /// Occurs when the current selection of shapes changes. [Api set: 1.1] /// Occurs when the user moves the mouse pointer into the bounding box of a shape. [Api set: 1.1] /// Occurs when the user moves the mouse out of the bounding box of a shape. [Api set: 1.1] } Document.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } Document.prototype.getActivePage = function() { /// /// Returns the Active Page of the document. [Api set: 1.1] /// /// } Document.prototype.setActivePage = function(PageName) { /// /// Set the Active Page of the document. [Api set: 1.1] /// /// Name of the page /// } Document.prototype.startDataRefresh = function() { /// /// Triggers the refresh of the data in the Diagram, for all pages. [Api set: 1.1] /// /// } Document.prototype.onDataRefreshComplete = { __proto__: null, add: function (handler) { /// Handler for the event. EventArgs: Provides information about the document that raised the DataRefreshComplete event. /// var eventInfo = new Visio.Interfaces.DataRefreshCompleteEventArgs(); eventInfo.__proto__ = null; handler(eventInfo); }, remove: function (handler) { /// Handler for the event. return; }, removeAll: function () { return; } }; Document.prototype.onPageLoadComplete = { __proto__: null, add: function (handler) { /// Handler for the event. EventArgs: Provides information about the page that raised the PageLoadComplete event. /// var eventInfo = new Visio.Interfaces.PageLoadCompleteEventArgs(); eventInfo.__proto__ = null; handler(eventInfo); }, remove: function (handler) { /// Handler for the event. return; }, removeAll: function () { return; } }; Document.prototype.onSelectionChanged = { __proto__: null, add: function (handler) { /// Handler for the event. EventArgs: Provides information about the shape collection that raised the SelectionChanged event. /// var eventInfo = new Visio.Interfaces.SelectionChangedEventArgs(); eventInfo.__proto__ = null; handler(eventInfo); }, remove: function (handler) { /// Handler for the event. return; }, removeAll: function () { return; } }; Document.prototype.onShapeMouseEnter = { __proto__: null, add: function (handler) { /// Handler for the event. EventArgs: Provides information about the shape that raised the ShapeMouseEnter event. /// var eventInfo = new Visio.Interfaces.ShapeMouseEnterEventArgs(); eventInfo.__proto__ = null; handler(eventInfo); }, remove: function (handler) { /// Handler for the event. return; }, removeAll: function () { return; } }; Document.prototype.onShapeMouseLeave = { __proto__: null, add: function (handler) { /// Handler for the event. EventArgs: Provides information about the shape that raised the ShapeMouseLeave event. /// var eventInfo = new Visio.Interfaces.ShapeMouseLeaveEventArgs(); eventInfo.__proto__ = null; handler(eventInfo); }, remove: function (handler) { /// Handler for the event. return; }, removeAll: function () { return; } }; return Document; })(OfficeExtension.ClientObject); Visio.Document = Document; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var DocumentView = (function(_super) { __extends(DocumentView, _super); function DocumentView() { /// Represents the DocumentView class. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// Disable Hyperlinks. [Api set: 1.1] /// Disable Pan. [Api set: 1.1] /// Disable Zoom. [Api set: 1.1] /// Disable Hyperlinks. [Api set: 1.1] } DocumentView.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } DocumentView.prototype.set = function() { /// /// Sets multiple properties on the object at the same time, based on JSON input. /// Properties described by the Visio.Interfaces.DocumentViewUpdateData interface. /// Options of the form { throwOnReadOnly?: boolean } ///
/// * throwOnReadOnly: Throw an error if the passed-in property list includes read-only properties (default = true). /// ///
/// /// Sets multiple properties on the object at the same time, based on an existing loaded object. /// An existing DocumentView object, with properties that have already been loaded and synced. /// } return DocumentView; })(OfficeExtension.ClientObject); Visio.DocumentView = DocumentView; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Interfaces; (function (Interfaces) { var Highlight = (function() { function Highlight() { /// Represents the highlight data added to the shape. [Api set: 1.1] /// A string that specifies the color of the highlight. It must have the form "#RRGGBB", where each letter represents a hexadecimal digit between 0 and F, and where RR is the red value between 0 and 0xFF (255), GG the green value between 0 and 0xFF (255), and BB is the blue value between 0 and 0xFF (255). [Api set: 1.1] /// A positive integer that specifies the width of the highlight's stroke in pixels. [Api set: 1.1] } return Highlight; })(); Interfaces.Highlight.__proto__ = null; Interfaces.Highlight = Highlight; })(Interfaces = Visio.Interfaces || (Visio.Interfaces = { __proto__: null})); })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Hyperlink = (function(_super) { __extends(Hyperlink, _super); function Hyperlink() { /// Represents the Hyperlink. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// Gets the address of the Hyperlink object. [Api set: 1.1] /// Gets the description of a hyperlink. [Api set: 1.1] /// Gets the sub-address of the Hyperlink object. [Api set: 1.1] } Hyperlink.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } return Hyperlink; })(OfficeExtension.ClientObject); Visio.Hyperlink = Hyperlink; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var HyperlinkCollection = (function(_super) { __extends(HyperlinkCollection, _super); function HyperlinkCollection() { /// Represents the Hyperlink Collection. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// Gets the loaded child items in this collection. } HyperlinkCollection.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } HyperlinkCollection.prototype.getCount = function() { /// /// Gets the number of hyperlinks. [Api set: 1.1] /// /// var result = new OfficeExtension.ClientResult(); result.__proto__ = null; result.value = 0; return result; } HyperlinkCollection.prototype.getItem = function(Key) { /// /// Gets a Hyperlink using its key (name or Id). [Api set: 1.1] /// /// Key is the name or index of the Hyperlink to be retrieved. /// } return HyperlinkCollection; })(OfficeExtension.ClientObject); Visio.HyperlinkCollection = HyperlinkCollection; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { /// Represents the Horizontal Alignment of the Overlay relative to the shape. [Api set: 1.1] var OverlayHorizontalAlignment = { __proto__: null, "left": "left", "center": "center", "right": "right", } Visio.OverlayHorizontalAlignment = OverlayHorizontalAlignment; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { /// Represents the type of the overlay. [Api set: 1.1] var OverlayType = { __proto__: null, "text": "text", "image": "image", } Visio.OverlayType = OverlayType; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { /// Represents the Vertical Alignment of the Overlay relative to the shape. [Api set: 1.1] var OverlayVerticalAlignment = { __proto__: null, "top": "top", "middle": "middle", "bottom": "bottom", } Visio.OverlayVerticalAlignment = OverlayVerticalAlignment; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Page = (function(_super) { __extends(Page, _super); function Page() { /// Represents the Page class. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// All shapes in the page. Read-only. [Api set: 1.1] /// Returns the Comments Collection [Api set: 1.1] /// Returns the height of the page. Read-only. [Api set: 1.1] /// Index of the Page. [Api set: 1.1] /// Whether the page is a background page or not. Read-only. [Api set: 1.1] /// Page name. Read-only. [Api set: 1.1] /// Shapes at root level, in the page. Read-only. [Api set: 1.1] /// Returns the view of the page. Read-only. [Api set: 1.1] /// Returns the width of the page. Read-only. [Api set: 1.1] } Page.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } Page.prototype.activate = function() { /// /// Set the page as Active Page of the document. [Api set: 1.1] /// /// } return Page; })(OfficeExtension.ClientObject); Visio.Page = Page; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var PageCollection = (function(_super) { __extends(PageCollection, _super); function PageCollection() { /// Represents a collection of Page objects that are part of the document. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// Gets the loaded child items in this collection. } PageCollection.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } PageCollection.prototype.getCount = function() { /// /// Gets the number of pages in the collection. [Api set: 1.1] /// /// var result = new OfficeExtension.ClientResult(); result.__proto__ = null; result.value = 0; return result; } PageCollection.prototype.getItem = function(key) { /// /// Gets a page using its key (name or Id). [Api set: 1.1] /// /// Key is the name or Id of the page to be retrieved. /// } return PageCollection; })(OfficeExtension.ClientObject); Visio.PageCollection = PageCollection; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Interfaces; (function (Interfaces) { var PageLoadCompleteEventArgs = (function() { function PageLoadCompleteEventArgs() { /// Provides information about the page that raised the PageLoadComplete event. [Api set: 1.1] /// Gets the name of the page that raised the PageLoad event. [Api set: 1.1] /// Gets the success/failure of the PageLoadComplete event. [Api set: 1.1] } return PageLoadCompleteEventArgs; })(); Interfaces.PageLoadCompleteEventArgs.__proto__ = null; Interfaces.PageLoadCompleteEventArgs = PageLoadCompleteEventArgs; })(Interfaces = Visio.Interfaces || (Visio.Interfaces = { __proto__: null})); })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var PageView = (function(_super) { __extends(PageView, _super); function PageView() { /// Represents the PageView class. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// Get/Set Page's Zoom level. The value can be between 10 and 400 and denotes the percentage of zoom. [Api set: 1.1] } PageView.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } PageView.prototype.set = function() { /// /// Sets multiple properties on the object at the same time, based on JSON input. /// Properties described by the Visio.Interfaces.PageViewUpdateData interface. /// Options of the form { throwOnReadOnly?: boolean } ///
/// * throwOnReadOnly: Throw an error if the passed-in property list includes read-only properties (default = true). /// ///
/// /// Sets multiple properties on the object at the same time, based on an existing loaded object. /// An existing PageView object, with properties that have already been loaded and synced. /// } PageView.prototype.centerViewportOnShape = function(ShapeId) { /// /// Pans the Visio drawing to place the specified shape in the center of the view. [Api set: 1.1] /// /// ShapeId to be seen in the center. /// } PageView.prototype.fitToWindow = function() { /// /// Fit Page to current window. [Api set: 1.1] /// /// } PageView.prototype.getPosition = function() { /// /// Returns the position object that specifies the position of the page in the view. [Api set: 1.1] /// /// var result = new OfficeExtension.ClientResult(); result.__proto__ = null; result.value = {}; return result; } PageView.prototype.getSelection = function() { /// /// Represents the Selection in the page. [Api set: 1.1] /// /// } PageView.prototype.isShapeInViewport = function(Shape) { /// /// To check if the shape is in view of the page or not. [Api set: 1.1] /// /// Shape to be checked. /// var result = new OfficeExtension.ClientResult(); result.__proto__ = null; result.value = false; return result; } PageView.prototype.setPosition = function(Position) { /// /// Sets the position of the page in the view. [Api set: 1.1] /// /// Position object that specifies the new position of the page in the view. /// } return PageView; })(OfficeExtension.ClientObject); Visio.PageView = PageView; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Interfaces; (function (Interfaces) { var Position = (function() { function Position() { /// Represents the Position of the object in the view. [Api set: 1.1] /// An integer that specifies the x-coordinate of the object, which is the signed value of the distance in pixels from the viewport's center to the left boundary of the page. [Api set: 1.1] /// An integer that specifies the y-coordinate of the object, which is the signed value of the distance in pixels from the viewport's center to the top boundary of the page. [Api set: 1.1] } return Position; })(); Interfaces.Position.__proto__ = null; Interfaces.Position = Position; })(Interfaces = Visio.Interfaces || (Visio.Interfaces = { __proto__: null})); })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Selection = (function(_super) { __extends(Selection, _super); function Selection() { /// Represents the Selection in the page. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// Gets the Shapes of the Selection [Api set: 1.1] } Selection.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } return Selection; })(OfficeExtension.ClientObject); Visio.Selection = Selection; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Interfaces; (function (Interfaces) { var SelectionChangedEventArgs = (function() { function SelectionChangedEventArgs() { /// Provides information about the shape collection that raised the SelectionChanged event. [Api set: 1.1] /// Gets the name of the page which has the ShapeCollection object that raised the SelectionChanged event. [Api set: 1.1] /// Gets the ShapeCollection object that raised the SelectionChanged event. [Api set: 1.1] } return SelectionChangedEventArgs; })(); Interfaces.SelectionChangedEventArgs.__proto__ = null; Interfaces.SelectionChangedEventArgs = SelectionChangedEventArgs; })(Interfaces = Visio.Interfaces || (Visio.Interfaces = { __proto__: null})); })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Shape = (function(_super) { __extends(Shape, _super); function Shape() { /// Represents the Shape class. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// Returns the Comments Collection [Api set: 1.1] /// Returns the Hyperlinks collection for a Shape object. Read-only. [Api set: 1.1] /// Shape's Identifier. [Api set: 1.1] /// Shape's name. [Api set: 1.1] /// Returns true, if shape is selected. User can set true to select the shape explicitly. [Api set: 1.1] /// Returns the Shape's Data Section. Read-only. [Api set: 1.1] /// Gets SubShape Collection. [Api set: 1.1] /// Shape's Text. [Api set: 1.1] /// Returns the view of the shape. Read-only. [Api set: 1.1] } Shape.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } Shape.prototype.set = function() { /// /// Sets multiple properties on the object at the same time, based on JSON input. /// Properties described by the Visio.Interfaces.ShapeUpdateData interface. /// Options of the form { throwOnReadOnly?: boolean } ///
/// * throwOnReadOnly: Throw an error if the passed-in property list includes read-only properties (default = true). /// ///
/// /// Sets multiple properties on the object at the same time, based on an existing loaded object. /// An existing Shape object, with properties that have already been loaded and synced. /// } Shape.prototype.getBounds = function() { /// /// Returns the BoundingBox object that specifies bounding box of the shape. [Api set: 1.1] /// /// var result = new OfficeExtension.ClientResult(); result.__proto__ = null; result.value = {}; return result; } return Shape; })(OfficeExtension.ClientObject); Visio.Shape = Shape; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var ShapeCollection = (function(_super) { __extends(ShapeCollection, _super); function ShapeCollection() { /// Represents the Shape Collection. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// Gets the loaded child items in this collection. } ShapeCollection.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } ShapeCollection.prototype.getCount = function() { /// /// Gets the number of Shapes in the collection. [Api set: 1.1] /// /// var result = new OfficeExtension.ClientResult(); result.__proto__ = null; result.value = 0; return result; } ShapeCollection.prototype.getItem = function(key) { /// /// Gets a Shape using its key (name or Index). [Api set: 1.1] /// /// Key is the Name or Index of the shape to be retrieved. /// } return ShapeCollection; })(OfficeExtension.ClientObject); Visio.ShapeCollection = ShapeCollection; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var ShapeDataItem = (function(_super) { __extends(ShapeDataItem, _super); function ShapeDataItem() { /// Represents the ShapeDataItem. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// A string that specifies the format of the shape data item. [Api set: 1.1] /// A string that specifies the formatted value of the shape data item. [Api set: 1.1] /// A string that specifies the label of the shape data item. [Api set: 1.1] /// A string that specifies the value of the shape data item. [Api set: 1.1] } ShapeDataItem.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } return ShapeDataItem; })(OfficeExtension.ClientObject); Visio.ShapeDataItem = ShapeDataItem; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var ShapeDataItemCollection = (function(_super) { __extends(ShapeDataItemCollection, _super); function ShapeDataItemCollection() { /// Represents the ShapeDataItemCollection for a given Shape. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// Gets the loaded child items in this collection. } ShapeDataItemCollection.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } ShapeDataItemCollection.prototype.getCount = function() { /// /// Gets the number of Shape Data Items. [Api set: 1.1] /// /// var result = new OfficeExtension.ClientResult(); result.__proto__ = null; result.value = 0; return result; } ShapeDataItemCollection.prototype.getItem = function(key) { /// /// Gets the ShapeDataItem using its name. [Api set: 1.1] /// /// Key is the name of the ShapeDataItem to be retrieved. /// } return ShapeDataItemCollection; })(OfficeExtension.ClientObject); Visio.ShapeDataItemCollection = ShapeDataItemCollection; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Interfaces; (function (Interfaces) { var ShapeMouseEnterEventArgs = (function() { function ShapeMouseEnterEventArgs() { /// Provides information about the shape that raised the ShapeMouseEnter event. [Api set: 1.1] /// Gets the name of the page which has the shape object that raised the ShapeMouseEnter event. [Api set: 1.1] /// Gets the shape object that raised the ShapeMouseEnter event. [Api set: 1.1] } return ShapeMouseEnterEventArgs; })(); Interfaces.ShapeMouseEnterEventArgs.__proto__ = null; Interfaces.ShapeMouseEnterEventArgs = ShapeMouseEnterEventArgs; })(Interfaces = Visio.Interfaces || (Visio.Interfaces = { __proto__: null})); })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Interfaces; (function (Interfaces) { var ShapeMouseLeaveEventArgs = (function() { function ShapeMouseLeaveEventArgs() { /// Provides information about the shape that raised the ShapeMouseLeave event. [Api set: 1.1] /// Gets the name of the page which has the shape object that raised the ShapeMouseLeave event. [Api set: 1.1] /// Gets the shape object that raised the ShapeMouseLeave event. [Api set: 1.1] } return ShapeMouseLeaveEventArgs; })(); Interfaces.ShapeMouseLeaveEventArgs.__proto__ = null; Interfaces.ShapeMouseLeaveEventArgs = ShapeMouseLeaveEventArgs; })(Interfaces = Visio.Interfaces || (Visio.Interfaces = { __proto__: null})); })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var ShapeView = (function(_super) { __extends(ShapeView, _super); function ShapeView() { /// Represents the ShapeView class. [Api set: 1.1] /// The request context associated with this object. /// Returns a boolean value for whether the corresponding object is null. You must call "context.sync()" before reading the isNull property. /// Represents the highlight around the shape. [Api set: 1.1] } ShapeView.prototype.load = function(option) { /// /// Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties. /// /// /// } ShapeView.prototype.set = function() { /// /// Sets multiple properties on the object at the same time, based on JSON input. /// Properties described by the Visio.Interfaces.ShapeViewUpdateData interface. /// Options of the form { throwOnReadOnly?: boolean } ///
/// * throwOnReadOnly: Throw an error if the passed-in property list includes read-only properties (default = true). /// ///
/// /// Sets multiple properties on the object at the same time, based on an existing loaded object. /// An existing ShapeView object, with properties that have already been loaded and synced. /// } ShapeView.prototype.addOverlay = function(OverlayType, Content, OverlayHorizontalAlignment, OverlayVerticalAlignment, Width, Height) { /// /// Adds an overlay on top of the shape. [Api set: 1.1] /// /// An Overlay Type -Text, Image. /// Content of Overlay. /// Horizontal Alignment of Overlay - Left, Center, Right /// Vertical Alignment of Overlay - Top, Middle, Bottom /// Overlay Width. /// Overlay Height. /// var result = new OfficeExtension.ClientResult(); result.__proto__ = null; result.value = 0; return result; } ShapeView.prototype.removeOverlay = function(OverlayId) { /// /// Removes particular overlay or all overlays on the Shape. [Api set: 1.1] /// /// An Overlay Id. Removes the specific overlay id from the shape. /// } return ShapeView; })(OfficeExtension.ClientObject); Visio.ShapeView = ShapeView; })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Interfaces; (function (Interfaces) { var ApplicationUpdateData = (function() { function ApplicationUpdateData() { /// An interface for updating data on the Application object, for use in "application.set({ ... })". /// Show or Hide the standard toolbars. [Api set: 1.1]; } return ApplicationUpdateData; })(); Interfaces.ApplicationUpdateData.__proto__ = null; Interfaces.ApplicationUpdateData = ApplicationUpdateData; })(Interfaces = Visio.Interfaces || (Visio.Interfaces = { __proto__: null})); })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Interfaces; (function (Interfaces) { var DocumentViewUpdateData = (function() { function DocumentViewUpdateData() { /// An interface for updating data on the DocumentView object, for use in "documentView.set({ ... })". /// Disable Hyperlinks. [Api set: 1.1]; /// Disable Pan. [Api set: 1.1]; /// Disable Zoom. [Api set: 1.1]; /// Disable Hyperlinks. [Api set: 1.1]; } return DocumentViewUpdateData; })(); Interfaces.DocumentViewUpdateData.__proto__ = null; Interfaces.DocumentViewUpdateData = DocumentViewUpdateData; })(Interfaces = Visio.Interfaces || (Visio.Interfaces = { __proto__: null})); })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Interfaces; (function (Interfaces) { var PageViewUpdateData = (function() { function PageViewUpdateData() { /// An interface for updating data on the PageView object, for use in "pageView.set({ ... })". /// Get/Set Page's Zoom level. The value can be between 10 and 400 and denotes the percentage of zoom. [Api set: 1.1]; } return PageViewUpdateData; })(); Interfaces.PageViewUpdateData.__proto__ = null; Interfaces.PageViewUpdateData = PageViewUpdateData; })(Interfaces = Visio.Interfaces || (Visio.Interfaces = { __proto__: null})); })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Interfaces; (function (Interfaces) { var ShapeUpdateData = (function() { function ShapeUpdateData() { /// An interface for updating data on the Shape object, for use in "shape.set({ ... })". /// Returns true, if shape is selected. User can set true to select the shape explicitly. [Api set: 1.1]; } return ShapeUpdateData; })(); Interfaces.ShapeUpdateData.__proto__ = null; Interfaces.ShapeUpdateData = ShapeUpdateData; })(Interfaces = Visio.Interfaces || (Visio.Interfaces = { __proto__: null})); })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Interfaces; (function (Interfaces) { var ShapeViewUpdateData = (function() { function ShapeViewUpdateData() { /// An interface for updating data on the ShapeView object, for use in "shapeView.set({ ... })". /// Represents the highlight around the shape. [Api set: 1.1]; } return ShapeViewUpdateData; })(); Interfaces.ShapeViewUpdateData.__proto__ = null; Interfaces.ShapeViewUpdateData = ShapeViewUpdateData; })(Interfaces = Visio.Interfaces || (Visio.Interfaces = { __proto__: null})); })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var Interfaces; (function (Interfaces) { var CommentUpdateData = (function() { function CommentUpdateData() { /// An interface for updating data on the Comment object, for use in "comment.set({ ... })". /// A string that specifies the label of the shape data item. [Api set: 1.1]; /// A string that specifies the format of the shape data item. [Api set: 1.1]; /// A string that specifies the value of the shape data item. [Api set: 1.1]; } return CommentUpdateData; })(); Interfaces.CommentUpdateData.__proto__ = null; Interfaces.CommentUpdateData = CommentUpdateData; })(Interfaces = Visio.Interfaces || (Visio.Interfaces = { __proto__: null})); })(Visio || (Visio = {__proto__: null})); var Visio; (function (Visio) { var RequestContext = (function (_super) { __extends(RequestContext, _super); function RequestContext() { /// /// The RequestContext object facilitates requests to the Visio application. Since the Office add-in and the Visio application run in two different processes, the request context is required to get access to the Visio object model from the add-in. /// /// Root object for interacting with the document _super.call(this, null); } return RequestContext; })(OfficeExtension.ClientRequestContext); Visio.RequestContext = RequestContext; Visio.run = function (batch) { /// /// /// Executes a batch script that performs actions on the Visio object model, using a new RequestContext. When the promise is resolved, any tracked objects that were automatically allocated during execution will be released. /// /// /// A function that takes in a RequestContext and returns a promise (typically, just the result of "context.sync()"). ///
/// The context parameter facilitates requests to the Visio application. Since the Office add-in and the Visio application run in two different processes, the RequestContext is required to get access to the Visio object model from the add-in. /// ///
/// /// /// Executes a batch script that performs actions on the Visio object model, using the RequestContext of a previously-created API object. When the promise is resolved, any tracked objects that were automatically allocated during execution will be released. /// /// /// A previously-created API object. The batch will use the same RequestContext as the passed-in object, which means that any changes applied to the object will be picked up by "context.sync()". /// /// /// A function that takes in a RequestContext and returns a promise (typically, just the result of "context.sync()"). ///
/// The context parameter facilitates requests to the Visio application. Since the Office add-in and the Visio application run in two different processes, the RequestContext is required to get access to the Visio object model from the add-in. /// ///
/// /// /// Executes a batch script that performs actions on the Visio object model, using the RequestContext of a previously-created API object. When the promise is resolved, any tracked objects that were automatically allocated during execution will be released. /// /// /// An array of previously-created API objects. The array will be validated to make sure that all of the objects share the same context. The batch will use this shared RequestContext, which means that any changes applied to these objects will be picked up by "context.sync()". /// /// /// A function that takes in a RequestContext and returns a promise (typically, just the result of "context.sync()"). ///
/// The context parameter facilitates requests to the Visio application. Since the Office add-in and the Visio application run in two different processes, the RequestContext is required to get access to the Visio object model from the add-in. /// ///
arguments[arguments.length - 1](new Visio.RequestContext()); return new OfficeExtension.Promise(); } })(Visio || (Visio = {__proto__: null})); Visio.__proto__ = null;