Share via


Document.PaperWidth Property

Visio Automation Reference

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

Version Information
 Version Added:  Visio 4.5

Syntax

expression.PaperWidth(UnitsNameOrCode)

expression   A variable that represents a Document object.

Parameters

Name Required/Optional Data Type Description
UnitsNameOrCode Required Variant The units to use when setting or retrieving the paper width.

Return Value
Double

Remarks

The PaperWidth property value can be a string such as "inches", "inch", "in.", or "i". Strings may be used for all supported Microsoft Office Visio units such as centimeters, meters, miles, and so on. You can also use any of the units constants declared by the Visio type library in member VisUnitCodes.

See Also