56 lines
1.2 KiB
C#
56 lines
1.2 KiB
C#
using System;
|
|
|
|
namespace CPF.ReoGrid.Print
|
|
{
|
|
public class PrintSettings : ICloneable
|
|
{
|
|
public string PrinterName { get; set; }
|
|
|
|
public PrintPageOrder PageOrder { get; set; }
|
|
|
|
public bool ShowMargins { get; set; }
|
|
|
|
public bool ShowGridLines { get; set; }
|
|
|
|
public float PageScaling { get; set; }
|
|
|
|
public string PaperName { get; set; }
|
|
|
|
public bool Landscape { get; set; }
|
|
|
|
public float PaperWidth { get; set; }
|
|
|
|
public float PaperHeight { get; set; }
|
|
|
|
public PageMargins Margins { get; set; }
|
|
|
|
public PrintSettings()
|
|
{
|
|
this.PageScaling = 1f;
|
|
this.PageOrder = PrintPageOrder.DownThenOver;
|
|
this.PaperName = PaperSize.Letter.ToString();
|
|
this.PaperWidth = 8.5f;
|
|
this.PaperHeight = 11f;
|
|
this.Landscape = false;
|
|
this.Margins = new PageMargins(1f);
|
|
}
|
|
|
|
public object Clone()
|
|
{
|
|
return new PrintSettings
|
|
{
|
|
PrinterName = this.PrinterName,
|
|
PageOrder = this.PageOrder,
|
|
PageScaling = this.PageScaling,
|
|
ShowMargins = this.ShowMargins,
|
|
ShowGridLines = this.ShowGridLines,
|
|
PaperName = this.PaperName,
|
|
PaperWidth = this.PaperWidth,
|
|
PaperHeight = this.PaperHeight,
|
|
Landscape = this.Landscape,
|
|
Margins = this.Margins
|
|
};
|
|
}
|
|
}
|
|
}
|