Share via


HeaderMargin Property [Visio 2003 SDK Documentation]

Gets or sets the margin of a document's header.

retVal = object**.HeaderMargin** ([UnitsNameOrCode])

object**.HeaderMargin** ([UnitsNameOrCode]****) = newVal

retVal     Double. The margin size.

object     Required. An expression that returns a Document object.

UnitsNameOrCode     Optional Variant. The units to use when retrieving or setting the cell's value. Defaults to internal drawing units (inches).

newVal     Required Double. The new margin size.

Version added

2002

Remarks

You can also set this value in the Margin box under Header in the Header and Footer dialog box (on the View menu, click Header and Footer).

Automation constants for representing units are declared by the Visio type library in member VisUnitCodes.

For a complete list of valid unit strings along with corresponding Automation constants (integer values), see About units of measure.

Applies to | Document object

See Also | FooterCenter property | FooterLeft property | FooterMargin property | FooterRight property | HeaderCenter property | HeaderFooterColor property | HeaderFooterFont property | HeaderLeft property | HeaderRight property