共用方式為


VisioDocument Element

The root element of a Microsoft Visio document.

Syntax

<VisioDocument
    [start]
    [key]
    [metric]
    [buildnum]
    [version]
    [DocLangID]>
</VisioDocument>

Attributes

start

Optional long. Indicates whether the document has been modified outside of Visio. If present, Visio will fully test the contents of the file. Omit for files you create outside of Visio.

key

Optional string. Indicates whether the document has been modified outside of Visio. If present, Visio will fully test the contents of the file. Omit for files you create outside of Visio.

metric

Optional boolean. Whether to use metric units in the drawing. Set this attribute to True (1) to use metric units; set it to False (0) to use English units.

buildnum

Optional long. The build number of the Visio instance used to create the document.

version

Optional string. The version number of the Visio instance. Microsoft Visio 2010 = 14.

DocLangID

Optional int. The unique ID of the user-interface language the user has specified in Microsoft Office 2010 Language Preferences.

Element properties

Property

Value

Name

VisioDocument

Minimum Occurrences

1

Maximum Occurrences

1

Element information

Parent elements

None

Child elements

DocumentProperties

DocumentSettings

Colors

PrintProps

FaceNames

StyleSheets

DocumentSheet

Masters

Pages

Windows

EventList

HeaderFooter

VBProjectData

EmailRoutingData

SolutionXML

When Visio saves a document in DatadiagramML format, the file includes a namespace. For example, <VisioDocument xmlns="https://schemas.microsoft.com/visio/2003/core">.

In addition, the Visio document contains the name of the schema to be used to validate the file.

See also

Document object