TopMargin Property [Visio 2003 SDK Documentation]
Specifies the top margin when printing a document.
retVal = object**.TopMargin**([UnitsNameOrCode])**
object**.TopMargin**([units]) = newValue
retVal Double. The margin value expressed in the given units.
object Required. An expression that returns a Document object.
UnitsNameOrCode Optional Variant. The units to use when retrieving or setting the margin value.
newValue Required Double. The new margin value.
Version added
4.0
Remarks
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 File menu, click Page Setup, 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 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.
For a list of valid integer and string values, see About units of measure.
Applies to | Document object
See Also | BottomMargin property | LeftMargin property | Result property | RightMargin property