PageMargins
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
Initializes a new instance of the PageMargins class with all margins set to zero.
public PageMargins()
Initializes a new instance of the PageMargins class with individual content and header/footer margins.
Initializes a new instance of the PageMargins class with individual content margins.
Initializes a new instance of the PageMargins class with symmetric content and header/footer margins.
Initializes a new instance of the PageMargins class with symmetric horizontal and vertical margins.
Initializes a new instance of the PageMargins class with uniform margins on all sides.
Fields
Provides narrow page margins (0.25" left/right, 0.75" top/bottom, 0.3" header/footer).
public static readonly PageMargins NarrowMargins
Provides standard page margins (0.7" left/right, 0.75" top/bottom, 0.3" header/footer).
public static readonly PageMargins NormalMargins
Provides wide page margins (1" left/right, 1" top/bottom, 0.5" header/footer).
public static readonly PageMargins WideMargins
Methods
Properties
Gets the bottom margin in device-independent pixels (1/96 inch).
public double Bottom { get; }
The bottom margin.
Gets the distance from the bottom edge of the page to the footer content, in device-independent pixels (1/96 inch).
public double Footer { get; }
The footer margin.
Gets the distance from the top edge of the page to the header content, in device-independent pixels (1/96 inch).
public double Header { get; }
The header margin.
Gets the left margin in device-independent pixels (1/96 inch).
public double Left { get; }
The left margin.
Gets the right margin in device-independent pixels (1/96 inch).
public double Right { get; }
The right margin.