Expand Minimize
This topic has not yet been rated - Rate this topic

Document.TopMargin Property (Visio)

Published: July 16, 2012

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

Version Added: Visio 4.0

expression .TopMargin(UnitsNameOrCode)

expression A variable that represents a Document object.

Parameters

Name

Required/Optional

Data Type

Description

UnitsNameOrCode

Optional

Variant

The units to use when retrieving or setting the margin value.

Return Value

Double

If UnitsNameOrCode is not provided, the TopMargin property will default to internal drawing units (inches).

The TopMargin property corresponds to the Top setting in the Print Setup dialog box (on the Design tab, click the Page Setup arrow, and then click Setup on the Print Setup tab).

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

For a list of valid integer and string values, see About Units of Measure.

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.