ClassPageMargins
Defines the page margins for printed worksheets, including content margins and header/footer offsets.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Printing
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class PageMargins
Inheritance: objectPageMargins
Constructors
PageMargins()
Initializes a new instance of the PageMargins class with all margins set to zero.
Declaration
public PageMargins()
PageMargins(double)
Initializes a new instance of the PageMargins class with uniform margins on all sides.
PageMargins(double, double)
Initializes a new instance of the PageMargins class with symmetric horizontal and vertical margins.
PageMargins(double, double, double)
Initializes a new instance of the PageMargins class with symmetric content and header/footer margins.
PageMargins(double, double, double, double)
Initializes a new instance of the PageMargins class with individual content margins.
PageMargins(double, double, double, double, double, double)
Initializes a new instance of the PageMargins class with individual content and header/footer margins.
Declaration
public PageMargins(double left, double top, double right, double bottom, double header, double footer)
Parameters
left
The left margin.
top
The top margin.
right
The right margin.
bottom
The bottom margin.
header
The header margin.
footer
The footer margin.
Fields
NarrowMargins
Provides narrow page margins (0.25" left/right, 0.75" top/bottom, 0.3" header/footer).
Declaration
public static readonly PageMargins NarrowMargins
Field Value
NormalMargins
Provides standard page margins (0.7" left/right, 0.75" top/bottom, 0.3" header/footer).
Declaration
public static readonly PageMargins NormalMargins
Field Value
WideMargins
Provides wide page margins (1" left/right, 1" top/bottom, 0.5" header/footer).
Declaration
public static readonly PageMargins WideMargins
Field Value
Properties
Bottom
Gets the bottom margin in device-independent pixels (1/96 inch).
Declaration
public double Bottom { get; }
Property Value
The bottom margin.
Footer
Gets the distance from the bottom edge of the page to the footer content, in device-independent pixels (1/96 inch).
Declaration
public double Footer { get; }
Property Value
The footer margin.
Header
Gets the distance from the top edge of the page to the header content, in device-independent pixels (1/96 inch).
Declaration
public double Header { get; }
Property Value
The header margin.
Left
Gets the left margin in device-independent pixels (1/96 inch).
Right
Gets the right margin in device-independent pixels (1/96 inch).
Methods
GetHashCode()
Serves as a hash function for a particular type.