PaperHeight property

Microsoft Visio Developer Reference

PaperHeight property

   Example   

Returns the height of a document's printed page.

Version added

4.5

Syntax

retVal = object.PaperHeight(units)

retVal

Double. The document's paper height 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 height.

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 in member VisUnitCodes.