Share via


PageSetup.HeaderMargin Property

Returns or sets the distance from the top of the page to the header, in points.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property HeaderMargin As Double
    Get
    Set
'Usage
Dim instance As PageSetup
Dim value As Double

value = instance.HeaderMargin

instance.HeaderMargin = value
double HeaderMargin { get; set; }

Property Value

Type: System.Double

Remarks

Margins are set or returned in points. Use the InchesToPoints method or the CentimetersToPoints method to convert measurements from inches or centimeters.

See Also

Reference

PageSetup Interface

PageSetup Members

Microsoft.Office.Interop.Excel Namespace