Document Properties (Visio)

GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Properties

Name

Description

AlternateNames

Gets or sets the alternate names for a document. Read/write.

Application

Returns the instance of Microsoft Visio that is associated with an object. Read-only.

AutoRecover

Determines whether an open document that has unsaved changes is copied when automatic recovery is enabled. Read/write.

BottomMargin

Specifies the bottom margin when printing the pages in a document. Read/write.

BuildNumberCreated

Returns the build number of the instance used to create the document. Read-only.

BuildNumberEdited

Returns the build number of the instance last used to edit the document. Read-only.

Category

Gets or sets the value of a document's category, one of the document properties. Read/write.

ClassID

Returns the class ID string of the container application in which the document is embedded. Read-only.

Colors

Returns the Colors collection of a Document object. Read-only.

Comments

Returns a Comments object that represents the collection of all the reviewer comments in the document. Read-only.

Company

Gets or sets the name of the company the document belongs to, one of the document's properties. Read/write.

CompatibilityMode

Returns a Boolean that indicates whether the specified document is in compatibility mode. Read-only.

Container

Returns an IDispatch interface on the ActiveX container in which the document is contained or Nothing if the document is not in a container. Read-only.

ContainsWorkspaceEx

Gets or sets whether workspace information is saved with the document. Read/write.

Creator

Gets or sets the value of a document's author—one of the document's properties. Read/write.

CustomMenus

Gets a UIObject object that represents the current custom menus and accelerators of a Document object. Read-only.

CustomMenusFile

Gets or sets the name of the file that defines custom menus and accelerators for a Document object. Read/write.

CustomToolbars

Gets a UIObject object that represents the current custom toolbars and status bars of a Document object. Read-only.

CustomToolbarsFile

Returns or sets the name of the file that defines custom toolbars and status bars for a Document object. Read/write.

CustomUI

Gets or sets the Ribbon XML string that is passed to the document to customize the Microsoft Office Fluent user interface. Read/write.

DataRecordsets

Returns the DataRecordsets collection contained in the document. Read-only.

DefaultFillStyle

Gets or sets the default fill style of a document. Read/write.

DefaultGuideStyle

Gets or sets the default guide style of a document. Read/write.

DefaultLineStyle

Gets or sets the default line style of a document. Read/write.

DefaultSavePath

Gets or sets the path to the location where Microsoft Visio saves the current document by default. Read/write.

DefaultStyle

Gets the default fill style of a document or sets the default fill, line, and text styles of a document. Read/write.

DefaultTextStyle

Gets or sets the default text style of a document. Read/write.

Description

Gets or sets the description of a document, one of a document's properties. Read/write.

DiagramServicesEnabled

Determines which, if any, diagram services are enabled for the document. Read/write.

DocumentSheet

Returns a Shape object whose cells represent properties of the document. Read-only.

DynamicGridEnabled

Determines whether the dynamic grid is enabled. Read/write.

EditorCount

Returns a Long that represents the number of editors of a co-authored document. Read-only.

EmailRoutingData

Returns e-mail routing data for a document. Read-only.

EventList

Returns the EventList collection of an object or the EventList collection that contains an Event object. Read-only.

Fonts

Returns the Fonts collection of a Document object. Read-only.

FooterCenter

Gets or sets the text string that appears in the center portion of a document's footer. Read/write.

FooterLeft

Gets or sets the text string that appears on the left side of a document's footer. Read/write.

FooterMargin

Gets or sets the margin of a document's footer. Read/write.

FooterRight

Gets or sets the text string that appears in the right portion of a document's footer. Read/write.

FullBuildNumberCreated

Returns the full build number of the instance used to create the document. Read-only.

FullBuildNumberEdited

Returns the full build number of the instance last used to edit the document. Read-only.

FullName

Returns the name of a document, including the drive and path. Read-only.

GestureFormatSheet

Returns a reference to a document's Gesture Format sheet, which contains the line, fill, and text formatting that is applied to shapes drawn on the page. Read-only.

GlueEnabled

Determines whether glue is enabled in the document. Read/write.

GlueSettings

Determines the objects that shapes glue to when glue is enabled in the document. Read/write.

HeaderCenter

Contains the text string that appears in the center portion of a document's header. Read/write.

HeaderFooterColor

Specifies the color of the header and footer text. Read/write.

HeaderFooterFont

Specifies the font used for the header and footer text. Read/write.

HeaderLeft

Gets or sets the text string that appears in the left portion of a document's header. Read/write.

HeaderMargin

Gets or sets the margin of a document's header. Read/write.

HeaderRight

Gets or sets the text string that appears in the right portion of a document's header. Read/write.

HyperlinkBase

Gets or sets the value of the Hyperlink base box in a document's Properties dialog box (click the File tab, click Info, click Properties, and then click Advanced Properties). Read/write.

ID

Gets the ID of an object. Read-only.

Index

Gets the ordinal position of a Document object in the Documents collection. Read-only.

InPlace

Specifies whether a document is open in place, or whether a document is being viewed through a window that is open in place. Read-only.

Keywords

Gets or sets the value of the Keywords box in a document's Properties dialog box. Read/write.

Language

Represents the language ID of the version of the Microsoft Visio instance represented by the parent object. Read/write.

LeftMargin

Specifies the left margin, which is used when printing. Read/write.

MacrosEnabled

Specifies whether you can execute macros and process events in a document's Microsoft Visual Basic for Applications (VBA) project. Read-only.

Manager

Gets or sets the value of the Manager box in a document's Properties dialog box. Read/write.

Masters

Returns the Masters collection for a document's stencil. Read-only.

MasterShortcuts

Returns the MasterShortcuts collection for a document stencil. Read-only.

Mode

Determines whether a document is in run mode or design mode. Read/write.

Name

Specifies the name of an object. Read-only.

ObjectType

Returns an object's type. Read-only.

OLEObjects

Returns the OLEObjects collection of a document. Read-only.

Pages

Returns the Pages collection for a document. Read-only.

PaperHeight

Returns the height of a document's printed page. Read-only.

PaperSize

Gets or sets the paper size of a document. Read/write.

PaperWidth

Returns the width of a document's printed page. Read-only.

Path

Returns the drive and folder path of the Microsoft Visio document. Read-only.

PersistsEvents

Indicates whether an object is capable of containing persistent events in its EventList collection. Read-only.

PreviewPicture

Gets or sets the preview picture shown in the Open dialog box and when you click the File tab, and then click New. Read/write.

PrintCenteredH

Indicates whether drawings are centered between the left and right edges of the paper when printed. Read/write.

PrintCenteredV

Indicates whether drawings are centered between the top and bottom edges of the paper when printed. Read/write.

Printer

Specifies the name of the printer to use when printing the document. Read/write.

PrintFitOnPages

Indicates whether drawings in a document are printed on a specified number of sheets across and down. Read/write.

PrintLandscape

Indicates whether a document's drawings are printed in landscape or portrait orientation. Read/write.

PrintPagesAcross

Indicates the number of sheets of paper on which a drawing is printed horizontally. Read/write.

PrintPagesDown

Gets or sets the number of sheets of paper on which a drawing is printed vertically. Read/write.

PrintScale

Gets or sets how much drawings are reduced or enlarged when printed. Read/write.

ProgID

Returns the programmatic identifier of a shape that represents an ActiveX control, an embedded object, or linked object. Read-only.

Protection

Determines how a document is protected from user customization. Read/write.

ReadOnly

Indicates whether a file is open as read-only. Read-only.

RemovePersonalInformation

Determines if personal information about a file is saved when the user saves the file in Microsoft Visio. Read/write.

RightMargin

Specifies the right margin, which is used when printing. Read/write.

Saved

Indicates whether a document has any unsaved changes. Read/write.

SavePreviewMode

Determines whether and how a preview picture is saved in a file. Read/write.

ServerPublishOptions

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.

SharedWorkspace

Returns a Microsoft Office SharedWorkspace object that provides access to the Office Document Workspace object model. Read-only.

SnapAngles

Determines the degree of the angle that is drawn when isometric angle lines is chosen as a shape extension option. Read/write.

SnapEnabled

Determines whether snap is active in the document. Read/write.

SnapExtensions

Determines the shape extensions that are active in a document. Read/write.

SnapSettings

Determines the objects that shapes snap to when snap is active in the document. Read/write.

SolutionXMLElement

Contains solution-specific, well-formed XML data stored with a document. Read/write.

SolutionXMLElementCount

Returns the number of SolutionXML elements in a document. Read-only.

SolutionXMLElementExists

Indicates whether a named SolutionXML element exists in the document. Read-only.

SolutionXMLElementName

Returns the name of the SolutionXML element. Read-only.

Stat

Returns status information for an object. Read-only.

Styles

Returns the Styles collection for a document. Read-only.

Subject

Gets or sets the value of the Subject field in a document's properties. Read/write.

Sync

Returns a Microsoft Office Sync object that provides information about the status of the active document in a shared workspace and the ability to perform a set of actions. Read-only.

Template

Returns the name of the template from which the document was created. Read-only.

Time

Returns the most recently recorded date and time. Read-only.

TimeCreated

Returns the date and time the document was created. Read-only.

TimeEdited

Returns the date and time the document was last edited. Read-only.

TimePrinted

Returns the date and time the document was last printed. Read-only.

TimeSaved

Returns the date and time the document was last saved. Read-only.

Title

Gets or sets the value of the Title field in a document's properties. Read/write.

TopMargin

Specifies the top margin when printing a document. Read/write.

Type

Returns the type of the Document object. Read-only.

UndoEnabled

Determines whether undo information is maintained in memory. Read/write.

UserCustomUI

Gets or sets the Ribbon XML string that is passed to the document to customize the Quick Access toolbar or the Ribbon. Read/write.

Validation

Returns the Validation object that is associated with the document. Read-only.

VBProject

Returns an automation object that you can use to control the Microsoft Visual Basic for Applications (VBA) project of the document. Read-only.

VBProjectData

Returns the Microsoft Visual Basic project data stored with a document. Read-only.

Version

Gets the version of a saved document or sets the version in which to save a document. Read/write.

ZoomBehavior

Determines the zoom behavior for a Microsoft Visio document or window. Read/write.

Permission