RightMargin property
Specifies the right margin, which is used when printing.
Version added
4.0
Syntax
| |
| |
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. |
Remarks
If unitsNameOrCode is not provided, the RightMargin property will default to internal drawing units (inches).
The RightMargin property corresponds to the Right setting in the Print Setup dialog box (click Page Setup on the File menu, and then click Setup).
You can specify unitsNameOrCode as an integer or a string value. If the string is invalid, an error is generated. For example, the following statements all set unitsNameOrCode to inches.
Cell.RightMargin(visInches) = newValue
Cell.RightMargin (65) = newValue
Cell.RightMargin ("in") = newValue where "in" can also be any of the alternate strings representing inches, such as "inch", "in.", or "i".
For a complete list of valid unit strings along with corresponding Automation constants (integer values), see About units of measure.
Automation constants for representing units are declared by the Visio type library in member VisUnitCodes.