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
MarginBottom
The bottom margin in mm.
public double MarginBottom { get; set; }
Property Value
MarginLeft
The margins in mm.
public double MarginLeft { get; set; }
Property Value
MarginRight
The right margin in mm.
public double MarginRight { get; set; }
Property Value
MarginTop
The top margin in mm.
public double MarginTop { get; set; }
Property Value
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
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
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
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
PrinterName
The name of the printer; null for the default printer.
public string PrinterName { get; set; }
Property Value
Methods
Clone()
Returns a copy of these page settings.
public PageSetup Clone()