New Members and Constants (Visio)
New Members
The following properties, methods, and events have been added to existing objects in Microsoft Visio 2010.
Application
Properties |
Description |
---|---|
Determines whether Microsoft Visio defers recalculating shape sizes and relationships when a member of the relationship pair is moved or resized. Read/write. |
|
Returns an enumerated value that represents the edition of the current instance of Microsoft Visio. Read-only. |
|
Gets the instance handle of the Application object for a 64-bit version of Microsoft Visio. Read-only. |
Methods |
Description |
---|---|
Turns preview on or off for a gallery in the Microsoft Visio user interface. |
|
Unregisters a previouly registered IRibbonExtensiblity interface that a Microsoft Visio add-in implements. |
|
Registers the IRibbonExtensibility interface that is implemented by the specified add-on to populate the custom user interface (UI). |
|
Returns the path to the specified custom stencil used to populate certain galleries in the Microsoft Visio user interface. |
|
Returns the file path to the specified built-in, hidden stencil used to populate certain galleries in the Microsoft Visio user interface. |
|
Returns a value that indicates whether preview is enabled for the specified gallery in the Microsoft Visio user interface. |
Events |
Description |
---|---|
Occurs when a callout relationship is deleted from the application. |
|
Occurs when a container relationship is deleted from the document. |
|
Occurs when a new callout relationship is added to the application. |
|
Occurs when a rule set is validated. |
|
Occurs when a new container relationship is added to the document. |
ApplicationSettings
Properties |
Description |
---|---|
Determines the flip that is applied to the exported image when you call the Export method of the Master, Page, Selection, or Shape object to export the specified object to a BMP, GIF, JPG, PNG, or TIFF file. Read/write. |
|
Determines the export operation that is applied to the exported image when you call the Export method of the Master, Page, Selection, or Shape object to export the specified object to a JPG file. Read/write. |
|
Indicates whether ShapeSheet formula AutoComplete is enabled. Read/write. |
|
Determines the background color that is applied to the exported image when you call the Export method of the Master, Page, Selection, or Shape object to export the specified object to a BMP, GIF, JPG, PNG, or TIFF file. Read/write. |
|
Determines whether the exported raster image is interlaced or non-interlaced when you call the Export method of the Master, Page, Selection, or Shape object to export the specified object to a GIF or PNG file. Read/write. |
|
Determines whether Microsoft Visio uses an animated transition to show certain shape movements, such as re-layout of shapes. Read/write. |
|
Determines whether connectors are deleted when a shape to which they are connected is deleted. Read/write. |
|
Determines the data compression algorithm that is applied to the exported image when you call the Export method of the Master, Page, Selection, or Shape object to export the specified object to a GIF or PNG file. Read/write. |
|
Determines the color format that is applied to the exported image when you call the Export method of the Master, Page, Selection, or Shape object to export the specified object to a BMP, GIF, PNG, or TIFF file. Read/write. |
|
Determines the color reduction that is applied to the exported image when you call the Export method of the Master, Page, Selection, or Shape object to export the specified object to a BMP, GIF, PNG, or TIFF file. Read/write. |
|
Determines the number of entries in the Recent Templates list in the Microsoft Visio user interface. Read/write. |
|
Determines whether Microsoft Visio applies, to the exported image, the transparency color that is specified in the RasterExportTransparencyColor property when you call the Export method of the Master, Page, Selection, or Shape object to export the specified object to a GIF or PNG file. Read/write. |
|
Determines the transparency color that is applied to the exported image when you call the Export method of the Master, Page, Selection, or Shape object to export the specified object to a GIF or PNG file. Read/write. |
|
Determines the rotation that is applied to the exported image when you call the Export method of the Master, Page, Selection, or Shape object to export the specified object to a BMP, GIF, JPG, PNG, or TIFF file. Read/write. |
|
Determines the export quality that is applied to the exported image when you call the Export method of the Master, Page, Selection, or Shape object to export the specified object to a JPG file. Read/write. |
|
Determines whether the selected background or border is applied to all pages in the document (True) or only to the current page (False). Read/write. |
Methods |
Description |
---|---|
Returns the raster export resolution settings. |
|
Specifies the raster export resolution settings. |
|
Gets the raster export size. |
|
Sets the raster export size. |
Document
Properties |
Description |
---|---|
Gets or sets the Ribbon XML string that is passed to the document to customize the Microsoft Office Fluent user interface. Read/write. |
|
Determines which, if any, diagram services are enabled for the document. Read/write. |
|
Gets or sets the Ribbon XML string that is passed to the document to customize the Quick Access toolbar or the Ribbon. Read/write. |
|
Returns the Validation object that is associated with the document. Read-only. |
|
Returns a ServerPublishOptions object that you can use to specify the settings to apply when you save a document as a Web drawing (as a .vdw file), then publish and use it on a Microsoft SharePoint site in conjunction with Visio Services. Read-only. |
Events |
Description |
---|---|
Occurs when a rule set is validated. |
Documents
Events |
Description |
---|---|
Occurs when a new callout relationship is added to a document. |
|
Occurs when a new container relationship is added to the document. |
|
Occurs when a callout relationship is deleted from a document. |
|
Occurs when a rule set is validated. |
|
Occurs when a container relationship is deleted from the document. |
InvisibleApp
Properties |
Description |
---|---|
Determines whether Microsoft Visio defers recalculating shape sizes and relationships when a member of a relationship pair is moved or resized. Read/write. |
|
Gets the instance handle of the InvisibleApp object for a 64-bit version of Microsoft Visio. Read-only. |
|
Returns an enumerated value that represents the edition of the current instance of Microsoft Visio. Read-only. |
Methods |
Description |
---|---|
Turns preview on or off for a gallery in the Microsoft Visio user interface. |
|
Returns a value that indicates whether preview is enabled for the specified gallery in the Microsoft Visio user interface. |
|
Registers the IRibbonExtensibility interface that is implemented by the specified add-on to populate the custom user interface (UI). |
|
Returns the file path to the specified built-in, hidden stencil used to populate certain galleries in the Microsoft Visio user interface. |
|
Unregisters a previouly registered IRibbonExtensiblity interface that a Microsoft Visio add-in implements. |
|
Returns the path to the specified custom stencil used to populate certain galleries in the Microsoft Visio user interface. |
Events |
Description |
---|---|
Occurs when a new container relationship is added to the document. |
|
Occurs when a rule set is validated. |
|
Occurs when a callout relationship is deleted from the application. |
|
Occurs when a container relationship is deleted from the document. |
|
Occurs when a new callout relationship is added to the application. |
Master
Methods |
Description |
---|---|
Pastes a shape to the specified location. |
Page
Properties |
Description |
---|---|
Determines whether to enable advanced connector routing logic on the page. Read/write. |
|
Determines whether Microsoft Visio automatically resizes the drawing page by adding printer-paper-sized sheets, as necessary, to fit the drawing's contents. Read/write. |
Methods |
Description |
---|---|
Revises the layout of a set of connected shapes on the page, by rotating or flipping a connected diagram without rotating or flipping the individual shapes. |
|
Returns an array of shape identifiers (IDs) of the container shapes on the page. |
|
Inserts a data graphics legend on a Microsoft Visio drawing page. Returns the list shape instance specified in the OuterList parameter. |
|
Drops the specified object into the specified list at the specified position. Returns the newly dropped shape. |
|
Splits the specified connector with the specified shape. Returns the new duplicated connector. |
|
Creates a new callout Shape object on the page near the specified target shape, and associates the callout with the target shape. Returns the callout shape. |
|
Makes small adjustments to the position of shapes on the drawing page to better align the shapes or to space them evenly from other shapes. |
|
Creates a new container Shape object on the page, places the container around the specified target shapes, and adds the target shapes to the container. Returns the container shape. |
|
Automatically draws multiple connections in the specified directions between the specified shapes. Returns the number of shapes connected. |
|
Makes small adjustments to shapes to move them off page breaks. |
|
Pastes the shape to the specified location on the page. |
|
Returns the list of identifiers of the callout shapes on the page. |
|
Automatically resizes the drawing page by adding as many printer-paper-sized tiles as necessary to fit all shapes in the drawing onto the page. |
|
Creates a new Shape object on the page, places the new shape relative to the specified existing target shape, and adds a connector from the existing shape to the new shape. Returns the newly created shape. |
Events |
Description |
---|---|
Occurs when a container relationship is deleted from the document. |
|
Occurs when a new container relationship is added to the document. |
|
Occurs when a callout relationship is deleted from the page. |
|
Occurs when a new callout relationship is added to the page. |
Pages
Events |
Description |
---|---|
Occurs when a new callout relationship is added to a page. |
|
Occurs when a callout relationship is deleted from a page. |
|
Occurs when a container relationship is deleted from the document. |
|
Occurs when a new container relationship is added to the document. |
Selection
Properties |
Description |
---|---|
Returns the Selection object that represents the collection of shapes that will participate in drag or copy operations, based on the current selection. Read-only. |
Methods |
Description |
---|---|
Returns an array of shape identifiers (IDs) of the container shapes in the selection. |
|
Returns an array of identifiers of the shapes that belong to the normal or list containers that contain all the shapes in the selection. |
|
Adds the selection of shapes to all underlying containers that allow it as a member. |
|
Moves the selection to the specified page, and drops a replacement shape on the source page and links it to the target page. Returns the selection of moved shapes on the target page. |
|
Returns an array of identifiers of the shapes that belong to the normal or list containers that contain at least one of the shapes in the selection. |
|
Makes small adjustments to selected shapes to move them off page breaks. |
|
Makes small adjustments to the position of shapes in the selection to better align the shapes or to space them evenly from other shapes. |
|
Removes the selection of shapes from all lists and containers of which the selection is a member. |
|
Revises the layout of a selection of connected shapes by rotating or flipping a connected diagram without rotating or flipping the individual shapes. |
|
Resizes the selection by moving shape handles as specified. |
|
Deletes additional shapes associated with the selection, such as connectors and unselected container members, when the selection is deleted. |
|
Returns the list of identifiers of the callout shapes in the selection. |
|
Changes the formatting of one aspect of all the containers in the selection, and returns an array of identifiers of shapes that belong to the containers and whose formatting was changed. |
Shape
Properties |
Description |
---|---|
Returns an array of Long values that represent the identifiers of the container shapes that include the shape as a member. Read-only. |
|
Returns an array of Long values that represent the collection of identifiers for all of the callout shapes that are associated with the target shape by a callout relationship. Read-only. |
|
Returns the ContainerProperties object associated with the shape. Read-only. |
|
Gets or sets the target shape that is associated with the callout shape by a callout relationship. Read/write. |
|
Indicates whether the shape is a callout shape. Read-only. |
Methods |
Description |
---|---|
Moves the shape to the specified page and drops a replacement shape on the source page, then links it to the target page. Returns the selection of moved shapes on the target page. |
|
Returns an array that contains the identifiers of the shapes that are glued to a shape. |
|
Returns an array that contains the identifiers (IDs) of the shapes that are connected to the shape. |
|
Returns True if the specified category is in the shape categories list. |
|
Resizes the shape by moving shape handles as specified. |
|
Removes the shape from all lists and containers of which it is a member. |
|
Unglues the specified connector end points and offsets them the specified amount from the shapes to which they were joined. |
|
Deletes the additional shapes that are associated with the shape, such as connectors and unselected container members, when the shape is deleted. |
|
Adds the shape to all underlying containers that allow it as a member. |
|
Creates and returns a new sub-process page that is linked to the shape. |
Shapes
Properties |
Description |
---|---|
Returns the Shape object that matches the specified UniqueID property value. Read-only. |
Window
Properties |
Description |
---|---|
Gets or sets the validation issue that is selected in the Issues window. Read/write. |
|
Returns the Selection object that represents the collection of shapes that will participate in drag or copy operations, based on the current selection. Read-only. |
Methods |
Description |
---|---|
Pans the Microsoft Visio drawing window to place the specified shape in the center of the view. |
New Constants
The following constants have been added to existing enumerations in Microsoft Visio 2010.
Enumeration |
New Constants |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|