Table of Contents

Class PageSetup

Namespace
CADability
Assembly
CADability.dll

The page settings of a Project or a Layout for printing: the paper, its orientation, the margins and the printer. This is what project files contain instead of the GDI+ PageSettings, so that they can be written and read on every platform (issue #412). All lengths are in millimeters.

public sealed class PageSetup : ISerializable
Inheritance
PageSetup
Implements
Inherited Members

Constructors

PageSetup()

Creates page settings for the default paper of the default printer, in portrait orientation, without margins.

public PageSetup()

Properties

Landscape

True if the page is printed in landscape orientation.

public bool Landscape { get; set; }

Property Value

bool

MarginBottom

The bottom margin in mm.

public double MarginBottom { get; set; }

Property Value

double

MarginLeft

The margins in mm.

public double MarginLeft { get; set; }

Property Value

double

MarginRight

The right margin in mm.

public double MarginRight { get; set; }

Property Value

double

MarginTop

The top margin in mm.

public double MarginTop { get; set; }

Property Value

double

PaperHeight

The height of the paper in portrait orientation in mm; 0 if the printer's default paper is used.

public double PaperHeight { get; set; }

Property Value

double

PaperKind

The paper kind of the printing system (the DMPAPER number of Windows, e.g. 9 for A4), 0 for a custom paper or if it is not known. It only helps to find the same paper on a printer again.

public int PaperKind { get; set; }

Property Value

int

PaperName

The name of the paper, e.g. "A4" or "Letter"; null if the printer's default paper is used.

public string PaperName { get; set; }

Property Value

string

PaperWidth

The width of the paper in portrait orientation in mm; 0 if the printer's default paper is used.

public double PaperWidth { get; set; }

Property Value

double

PrinterName

The name of the printer; null for the default printer.

public string PrinterName { get; set; }

Property Value

string

Methods

Clone()

Returns a copy of these page settings.

public PageSetup Clone()

Returns

PageSetup