Class
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:

cs-api-definition
public class PageMargins

Inheritance: objectPageMargins

Constructors

PageMargins()

Initializes a new instance of the PageMargins class with all margins set to zero.

Declaration

cs-api-definition
public PageMargins()

PageMargins(double)

Initializes a new instance of the PageMargins class with uniform margins on all sides.

Declaration

cs-api-definition
public PageMargins(double all)

Parameters

all

double

All margins.

PageMargins(double, double)

Initializes a new instance of the PageMargins class with symmetric horizontal and vertical margins.

Declaration

cs-api-definition
public PageMargins(double leftRight, double topBottom)

Parameters

leftRight

double

The left and the right margin.

topBottom

double

The top and the bottom margin.

PageMargins(double, double, double)

Initializes a new instance of the PageMargins class with symmetric content and header/footer margins.

Declaration

cs-api-definition
public PageMargins(double leftRight, double topBottom, double headerFooter)

Parameters

leftRight

double

The left and right margins.

topBottom

double

The top and bottom margins.

headerFooter

double

The header and footer margins.

PageMargins(double, double, double, double)

Initializes a new instance of the PageMargins class with individual content margins.

Declaration

cs-api-definition
public PageMargins(double left, double top, double right, double bottom)

Parameters

left

double

The left margin.

top

double

The top margin.

right

double

The right margin.

bottom

double

The bottom margin.

PageMargins(double, double, double, double, double, double)

Initializes a new instance of the PageMargins class with individual content and header/footer margins.

Declaration

cs-api-definition
public PageMargins(double left, double top, double right, double bottom, double header, double footer)

Parameters

left

double

The left margin.

top

double

The top margin.

right

double

The right margin.

bottom

double

The bottom margin.

header

double

The header margin.

footer

double

The footer margin.

Fields

NarrowMargins

Provides narrow page margins (0.25" left/right, 0.75" top/bottom, 0.3" header/footer).

Declaration

cs-api-definition
public static readonly PageMargins NarrowMargins

Field Value

PageMargins

NormalMargins

Provides standard page margins (0.7" left/right, 0.75" top/bottom, 0.3" header/footer).

Declaration

cs-api-definition
public static readonly PageMargins NormalMargins

Field Value

PageMargins

WideMargins

Provides wide page margins (1" left/right, 1" top/bottom, 0.5" header/footer).

Declaration

cs-api-definition
public static readonly PageMargins WideMargins

Field Value

PageMargins

Properties

Bottom

Gets the bottom margin in device-independent pixels (1/96 inch).

Declaration

cs-api-definition
public double Bottom { get; }

Property Value

double

The bottom margin.

Gets the distance from the bottom edge of the page to the footer content, in device-independent pixels (1/96 inch).

Declaration

cs-api-definition
public double Footer { get; }

Property Value

double

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

cs-api-definition
public double Header { get; }

Property Value

double

The header margin.

Left

Gets the left margin in device-independent pixels (1/96 inch).

Declaration

cs-api-definition
public double Left { get; }

Property Value

double

The left margin.

Right

Gets the right margin in device-independent pixels (1/96 inch).

Declaration

cs-api-definition
public double Right { get; }

Property Value

double

The right margin.

Top

Gets the top margin in device-independent pixels (1/96 inch).

Declaration

cs-api-definition
public double Top { get; }

Property Value

double

The top margin.

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current object.

Returns

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()