Share via


PageSetup.RightMargin Property

Returns or sets the size of the right margin in points.

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

Syntax

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

value = instance.RightMargin

instance.RightMargin = value
double RightMargin { 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