Spread Windows Forms 12.0 Product Documentation
TopMargin Property


GrapeCity.Spreadsheet Assembly > GrapeCity.Spreadsheet.Printing Namespace > PageSetup Class : TopMargin Property
Gets or sets the size of the top margin, in points.
Syntax
'Declaration
 
Public Property TopMargin As Double
'Usage
 
Dim instance As PageSetup
Dim value As Double
 
instance.TopMargin = value
 
value = instance.TopMargin
public double TopMargin {get; set;}

Property Value

A double value represents the top margin.
Remarks
Margins are set or returned in points. Use the GrapeCity.Spreadsheet.IO.OpenXml.UnitConverter.InchesToPoints method or the GrapeCity.Spreadsheet.IO.OpenXml.UnitConverter.CentimetersToPoints method to convert measurements from inches or centimeters.
See Also

Reference

PageSetup Class
PageSetup Members