namespace System.Drawing.Printing
{
-#if NET_2_0
[Serializable]
-#else
- [ComVisible (false)]
-#endif
public class PageSettings : ICloneable
{
internal bool color;
// create a new default Margins object (is 1 inch for all margins)
Margins margins = new Margins();
-
-#if NET_2_0
+#pragma warning disable 649
float hardMarginX;
float hardMarginY;
RectangleF printableArea;
-#endif
PrinterSettings printerSettings;
+#pragma warning restore 649
public PageSettings() : this(new PrinterSettings())
{
printerSettings = value;
}
}
-#if NET_2_0
public float HardMarginX {
get {
return hardMarginX;
return printableArea;
}
}
-#endif
public object Clone ()
{
// We do a deep copy
- PrinterResolution pres = new PrinterResolution (this.printerResolution.X, this.printerResolution.Y, this.printerResolution.Kind);
- PaperSource psource = new PaperSource (this.paperSource.SourceName, this.paperSource.Kind);
+ PrinterResolution pres = new PrinterResolution (this.printerResolution.Kind, this.printerResolution.X, this.printerResolution.Y);
+ PaperSource psource = new PaperSource (this.paperSource.Kind, this.paperSource.SourceName);
PaperSize psize = new PaperSize (this.paperSize.PaperName, this.paperSize.Width, this.paperSize.Height);
- psize.SetKind (this.paperSize.Kind);
+ psize.RawKind = (int)this.paperSize.Kind;
PageSettings ps = new PageSettings (this.printerSettings, this.color, this.landscape,
psize, psource, pres);