namespace ElectronNET.API.Entities { /// /// Print dpi /// public class PrintDpi { /// /// The horizontal dpi /// public float Horizontal { get; set; } /// /// The vertical dpi /// public float Vertical { get; set; } } /// /// The page range to print /// public class PrintPageRange { /// /// From /// public int From { get; set; } /// /// To /// public int To { get; set; } } /// /// Print options /// public class PrintOptions { /// /// Don't ask user for print settings /// public bool Silent { get; set; } /// /// Prints the background color and image of the web page /// public bool PrintBackground { get; set; } /// /// Set the printer device name to use /// public string DeviceName { get; set; } /// /// Set whether the printed web page will be in color or grayscale /// public bool Color { get; set; } /// /// Specifies the type of margins to use. Uses 0 for default margin, 1 for no /// margin, and 2 for minimum margin. /// public int MarginsType { get; set; } /// /// true for landscape, false for portrait. /// public bool Landscape { get; set; } /// /// The scale factor of the web page /// public float ScaleFactor { get; set; } /// /// The number of pages to print per page sheet /// public int PagesPerSheet { get; set; } /// /// The number of copies of the web page to print /// public bool Copies { get; set; } /// /// Whether the web page should be collated /// public bool Collate { get; set; } /// /// The page range to print /// public PrintPageRange PageRanges { get; set; } /// /// Set the duplex mode of the printed web page. Can be simplex, shortEdge, or longEdge. /// public string DuplexMode { get; set; } /// /// Dpi /// public PrintDpi Dpi { get; set; } } }