Viewer Object Members

Visio Viewer

The Microsoft Office Visio 2007 Viewer is a programmable ActiveX control that enables you to display Microsoft Office Visio drawings (with limited functionality) on Web pages and in Microsoft Windows forms, so that users who do not have Visio installed may view and interact with them.

Methods

  Name Description
Cc297211.methods(en-us,office.12).gif DisplayAbout Displays the About Microsoft Office Visio Viewer dialog box in Microsoft Office Visio 2007 Viewer.
Cc297211.methods(en-us,office.12).gif DisplayContextMenu Displays the context menu for the Microsoft Office Visio 2007 Viewer at the specified screen coordinates, in pixels.
Cc297211.methods(en-us,office.12).gif DisplayHelp Displays the Help topic that has the specified ID in the Microsoft Office Visio 2007 Viewer.
Cc297211.methods(en-us,office.12).gif DisplayPropertyDialog Displays the Properties and Settings dialog box at the specified screen coordinates, in pixels, in the Microsoft Office Visio 2007 Viewer.
Cc297211.methods(en-us,office.12).gif FollowHyperlink Follows the hyperlink at the specified index in the specified shape in the Microsoft Office Visio 2007 Viewer.
Cc297211.methods(en-us,office.12).gif GetErrorMessage Returns a string that describes the specified error message code in the Microsoft Office Visio 2007 Viewer.
Cc297211.methods(en-us,office.12).gif GetPageView Gets the position and zoom factor (size) of the drawing page in the Microsoft Office Visio 2007 Viewer.
Cc297211.methods(en-us,office.12).gif Load Loads a drawing file into the Microsoft Office Visio 2007 Viewer.
Cc297211.methods(en-us,office.12).gif Pan Moves the page, horizontally or vertically, by the specified coordinate values, in pixels, in the Microsoft Office Visio 2007 Viewer.
Cc297211.methods(en-us,office.12).gif SelectShape Selects the specified shape in the drawing that is open in the Microsoft Office Visio 2007 Viewer.
Cc297211.methods(en-us,office.12).gif SetPageView Sets the position and zoom factor (size) of the drawing page in the Microsoft Office Visio 2007 Viewer.
Cc297211.methods(en-us,office.12).gif Unload Unloads the drawing file open in the Microsoft Office Visio 2007 Viewer.
Cc297211.methods(en-us,office.12).gif ZoomToPoint Resizes the drawing open in the Microsoft Office Visio 2007 Viewer to the specified percent of its previous size and places the upper left corner of the drawing at the specified point, in pixels, in the Viewer window in the coordinate frame of the Viewer window.
Cc297211.methods(en-us,office.12).gif ZoomToRect Zooms to display a rectanglular section, specified by the parameters, of the drawing open in the Microsoft Office Visio 2007 Viewer.

Properties

  Name Description
Cc297211.properties(en-us,office.12).gif AlertsEnabled Gets or sets a value that indicates whether warnings and alerts appear when an error occurs in Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif BackColor Gets or sets the background color of Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif BuildNumber Gets the build number of Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif ContextMenuEnabled Gets or sets a value that indicates whether the context (right-click) menu is enabled in Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif CurrentPageIndex Gets or sets the index of the displayed page when a drawing opens in Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif CustomPropertyCount Gets the count of shape data items (custom properties) assigned to the specified shape in Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif CustomPropertyName Gets the name of the shape data item (custom property) at the specified index position for the specified shape in Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif CustomPropertyValue Gets the value of the shape data item (custom property) at the specified index position for the specified shape in Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif DocumentLoaded Gets a value that indicates whether a document is loaded in Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif GridVisible Gets or sets a value that indicates whether the page grid is visible in Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif HighQualityRender Gets or sets a value that indicates whether high-quality rendering is enabled in Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif HyperlinkAddress Gets the address of the specified hyperlink associated with the specified shape in the drawing open in Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif HyperlinkCount Gets the count of hyperlinks associated with the shape at the specified index in the document open in Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif LastErrorCode Gets the last error code returned by Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif LayerColor Gets or sets the color of the layer at the specified index position in the current drawing open in Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif LayerColorOverride Gets or sets a value that indicates whether the color of the specified layer is reset to the default color in the current drawing in Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif LayerColorTrans Gets or sets the transparency of the color of the layer at the specified index in the current drawing in Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif LayerCount Gets the count of the number of layers in the current drawing open in Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif LayerDeleted Gets a value that indicates whether the layer at the specified index in the drawing open in Microsoft Office Visio 2007 Viewer is deleted. Read-only.
Cc297211.properties(en-us,office.12).gif LayerName Gets the name of the layer at the specified index in the drawing open in Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif LayerVisible Gets or sets a value indicating whether the specified layer is visible in the drawing open in Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif MajorVersionNumber Gets the major version number of the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif MarkupOverlaysVisible Gets or sets whether markup overlays are visible in the current document open in the Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif MinorVersionNumber Gets the minor version number of the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif PageColor Gets or sets the color of the page in the current drawing open in the Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif PageCount Gets the number of pages in the current document open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif PageIDToIndex Gets the index of the specified page in the collection of pages in the drawing open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif PageIndexToID Gets the ID of the page at the specified index in the collection of pages in the drawing open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif PageName Gets the name of the specified page in the drawing open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif PageTabsVisible Gets or sets whether page tabs are visible in the Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif PageVisible Gets or sets whether the drawing page is visible in the Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif ParentShape Gets the index number of the parent shape of the specified shape in the drawing open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif PropertyDialogEnabled Gets or sets whether the Properties and Settings dialog box is available in the user interface for the Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif ReviewerColor Gets the color of the markup overlay that is associated with the specified reviewer in the drawing open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif ReviewerCount Gets the count of reviewers in the current document open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif ReviewerID Gets the ID of the specified reviewer in the drawing open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif ReviewerInitial Gets the initials of the specified reviewer in the drawing open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif ReviewerMarkupVisible Gets or sets whether markup of the specified reviewer is visible in the drawing open in the Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif ReviewerName Gets the name of the specified reviewer in the drawing open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif ScrollbarsVisible Gets or sets whether the scrollbars are visible in the Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif SelectedShapeIndex Gets the index in the collection of shapes of the selected shape in the drawing open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif ShapeAtPoint Gets the ID of the shape in the drawing open in the Microsoft Office Visio 2007 Viewer, at the specified point in the Viewer window, in the coordinate system of the Viewer window, measured in pixels. Read-only.
Cc297211.properties(en-us,office.12).gif ShapeCount Gets the count of shapes in the drawing open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif ShapeIDToIndex Gets the index in the collection of shapes of the shape with the specified ID in the drawing that is open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif ShapeIndexToID Gets the ID of the shape at the specified index position in the collection of shapes in the drawing that is open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif ShapeName Gets the name of the shape at the specified index in the collection of shapes in the drawing open in the Microsoft Office Visio 2007 Viewer. Read-only.
Cc297211.properties(en-us,office.12).gif SRC Gets or sets the path to the source file for the drawing in the Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif SubShapeAtPoint Gets the ID of the subshape in the drawing open in the Microsoft Office Visio 2007 Viewer, at the specified point in the Viewer window, in the coordinate system of the Viewer window, in pixels. Read-only.
Cc297211.properties(en-us,office.12).gif ToolbarButtons Gets or sets the buttons available in the toolbar in the Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif ToolbarCustomizable Gets or sets whether it is possible to customize the toolbar in the Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif ToolbarVisible Gets or sets whether the toolbar is visible in the Microsoft Office Visio 2007 Viewer. Read/write.
Cc297211.properties(en-us,office.12).gif Zoom Gets or sets the zoom, in percent, for the Microsoft Office Visio 2007 Viewer. Read/write.

Events

  Name Description
Cc297211.events(en-us,office.12).gif OnDocumentLoaded Occurs after a document is loaded into the Microsoft Office Visio 2007 Viewer.
Cc297211.events(en-us,office.12).gif OnDocumentUnloaded Occurs after the current document in the Microsoft Office Visio 2007 Viewer is unloaded.
Cc297211.events(en-us,office.12).gif OnLayerChanged Occurs when a layer is changed in the document open in the Microsoft Office Visio 2007 Viewer.
Cc297211.events(en-us,office.12).gif OnMarkupOverlaysVisibleChanged Occurs when the visibility of markup overlays changes in the Microsoft Office Visio 2007 Viewer.
Cc297211.events(en-us,office.12).gif OnPageChanged Occurs when the active page is changed in the Microsoft Office Visio 2007 Viewer.
Cc297211.events(en-us,office.12).gif OnReviewerChanged Occurs when the visibility of a particular reviewer's markup (comments) is changed in the Microsoft Office Visio 2007 Viewer.
Cc297211.events(en-us,office.12).gif OnSelectionChanged Occurs when the shape selection is changed in the Microsoft Office Visio 2007 Viewer.
Cc297211.events(en-us,office.12).gif OnToolbarCustomized Occurs when the user customizes the Microsoft Office Visio 2007 Viewer toolbar by adding or removing buttons.
Cc297211.events(en-us,office.12).gif OnViewChanged Occurs when the view of the current page is changed in the Microsoft Office Visio 2007 Viewer.