PageSetup.TopMargin Property
Returns or sets the size of the top margin in points.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Property TopMargin As Double
Get
Set
'Usage
Dim instance As PageSetup
Dim value As Double
value = instance.TopMargin
instance.TopMargin = value
double TopMargin { 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.