Spread Windows Forms 13.0 Product Documentation
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Printing Namespace / PageSetup Class / TopMargin Property


In This Topic
    TopMargin Property
    In This Topic
    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