This documentation is archived and is not being maintained.

New Objects, Collections, and Enumerations (Visio)

Office 2010

The following objects and collections have been added to the object model in Microsoft Visio 2010.

Object or Collection

Description

ContainerProperties

Represents the set of properties that are specific to a container.

MovedSelectionEvent

Holds information about a selection that is moved from one location, such as a page or a document, to another.

RelatedShapePairEvent

Holds information about the shapes that are involved in a container relationship or a callout relationship.

ServerPublishOptions

Represents the settings to apply when you save a Web Drawing (as a .vdw file) to use on a Microsoft SharePoint site in conjunction with Visio Services.

Validation

Stores information about diagram validation for the document.

ValidationIssue

Represents a single validation issue in the ValidationIssues collection of a document.

ValidationIssues

Includes a ValidationIssue object for each validation issue in the document.

ValidationRule

Represents a single validation rule in a diagram validation rule set.

ValidationRules

Includes a ValidationRule object for each validation rule in the rule set.

ValidationRuleSet

Represents one set of diagram validation rules.

ValidationRuleSets

Includes a ValidationRuleSet object for each validation rule set in the document.

The following enumerations have been added to the object model in Microsoft Visio 2010.

Enumerations

Description

VisBuiltInStencilTypes

Specifies constants that identify the available stencils; passed to the GetBuiltInStencilFile and GetCustomStencilFile methods.

VisCenterViewFlags

Specifies constants that define the different ways to center the view; passed to the Windows.CenterViewOnShape method.

VisConnectedShapesFlags

Specifies constants that identify shapes by the directionality of their connectors; passed to the Shape.ConnectedShapes method.

VisConnectorEnds

Specifies constants that define the end points of a connector; passed to the Shape.Disconnect method.

VisContainerAutoResize

Specifies constants that define the different ways that the container boundary can resize automatically to fit its contents; passed to and returned by the ContainerProperties.ResizeAsNeeded property.

VisContainerFlags

Specifies which container member shape IDs to return; constants passed to the ContainerProperties.GetMemberShapes method.

VisContainerFormatType

Specifies constants that determine the container format to change; passed to the Selection.SetContainerFormat method.

VisContainerMemberState

Specifies constants that denote the state of the input member shape with respect to the container; returned by the ContainerProperties.GetMemberState method.

VisContainerNested

Specifies whether to include or exclude shapes from nested containers; constants passed to the Page.GetContainers and Selection.GetContainers methods.

VisContainerTypes

Specifies whether member shapes are arranged in a list; value returned by the ContainerProperties.ContainerType property.

VisDeleteFlags

Specifies constants that define particular sets of instruction to apply to a deletion; passed to the Selection.DeleteEx and Shape.DeleteEx methods.

VisDiagramServices

Specifies constants that represent diagram services. These constants are passed to and returned by the Document.DiagramServicesEnabled property.

VisEdition

Specifies constants that represent the installed edition of Microsoft Visio.

VisGluedShapesFlags

Specifies constants that identify which shapes to return, based on the dimensionality and directionality of the connection points that are glued to a particular shape; passed to the Shapes.GluedShapes method.

VisLangFlags

Specifies the language of the page name as local or universal; passed to the various members of the ServerPublishOptions object.

VisLayoutDirection

Specifies constants that define the layout directions for a diagram; passed to the ContainerProperties.RotateFlipList method.

VisLayoutHorzAlignType

Specifies constants that define the different ways to incrementally align a shape horizontally; passed to the Page.LayoutIncremental and Selection.LayoutIncremental methods.

VisLayoutIncrementalType

Specifies constants that define types of incremental layout; passed to the Page.LayoutIncremental and Selection.LayoutIncremental methods.

VisLayoutVertAlignType

Specifies constants that define the different ways to incrementally align a shape vertically; passed to the Page.LayoutIncremental and Selection.LayoutIncremental methods.

VisLegendFlags

Specifies contants that define whether to populate the legend; passed to the DropLegend method.

VisListAlignment

Specifies constants that define different ways to align shapes; passed to and returned by the ContainerProperties.ListAlignment property.

VisListDirection

Specifies constants that identify the list direction; passed to and returned by the ContainerProperties.ListDirection property.

VisMemberAddOptions

Specifies whether to expand the container to accomodate the new member(s) or to resize it automatically according to the default settings; constants passed to the ContainerProperties.AddMember method.

VisPublishDataRecordsets

Specifies constants that define which data recordsets to publish; passed to the ServerPublishOptions.SetRecordsetsToPublish method and returned by the ServerPublishOptions.GetRecordsetsToPublish method.

VisPublishPages

Specifies constants that define which pages to publish; passed to the ServerPublishOptions.SetPagesToPublish method and returned by the ServerPublishOptions.GetPagesToPublish method.

VisRasterExportColorFormat

Specifies constants that define the raster export color formats; passed to and returned by the ApplicationSettings.RasterExportColorFormat property.

VisRasterExportColorReduction

Specifies constants that define the types of raster export color reduction; passed to and returned by the ApplicationSettings.RasterExportColorReduction property.

VisRasterExportDataCompression

Specifies constants that identify the types of raster export data compression; passed to and returned by the ApplicationSettings.RasterExportDataCompression property.

VisRasterExportDataFormat

Specifies constants that identify which raster export data format algorithm to use; passed to and returned by the ApplicationSettings.RasterExportDataFormat property.

VisRasterExportFlip

Specifies constants that define how to apply the raster export flip; passed to and returned by the ApplicationSettings.RasterExportFlip property.

VisRasterExportOperation

Specifies constants that identify the varieties of raster export operations; passed to and returned by the ApplicationSettings.RasterExportOperation property.

VisRasterExportResolution

Specifies constants that define which type of raster export resolution to use; passed to the SetRasterExportResolution method and returned by the GetRasterExportResolution method.

VisRasterExportResolutionUnits

Specifies constants that define the raster export resolution units; passed to the SetRasterExportResolution method and returned by the GetRasterExportResolution method.

VisRasterExportRotation

Specifies constants that define how to apply the raster export rotation; passed to and returned by the ApplicationSettings.RasterExportRotation property.

VisRasterExportSize

Specifies constants that define which raster export size to use; passed to the SetRasterExportSize method and returned by the GetRasterExportSize method.

VisRasterExportSizeUnits

Specifies constants that define the raster export size units; passed to the SetRasterExportSize method and returned by the GetRasterExportSize method.

VisResizeDirection

Specifies the resize directions that correspond to the shape handles to move; passed to the Shape.Resize and Selection.Resize methods.

VisRibbonXModes

Specifies constants that identify the various modes in which to display the custom UI; constant passed to the RegisterRibbonX method.

VisRoleSelectionTypes

Specifies selections that contain all shapes of a given role; passed to the Master.CreateSelection, Page.CreateSelection, and Shape.CreateSelection methods.

VisRuleSetFlags

Specifies constants that define special rule-set behaviors; passed to and returned by the ValidationRuleSet.RuleSetFlags property.

VisRuleTargets

Specifies contants that define the target of the validation rule; passed to and returned by the ValidationRule.TargetType property.

VisValidationFlags

Specifies constants that define special validation behaviors; passed to the Validation.Validate method.

Show: