PaperWidth property

Microsoft Visio Developer Reference

PaperWidth property

   Example   

Returns the width of a document's printed page.

Version added

4.5

Syntax

retVal = object.PaperWidth(units)

retVal

Double. The document's paper width expressed in the given units.

object

Required. An expression that returns a Document object.

units

Required Variant. The units to use when retrieving the paper width.

Remarks

Units can be a string such as "inches", "inch", "in.", or "i". Strings may be used for all supported 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.