4 instantiations of DevMode
ReachFramework (4)
MS\Internal\Printing\Configuration\DevMode.cs (2)
392DevMode result = new DevMode(); 467return new DevMode(devModeWBytes);
PrintConfig\FallbackPTProvider.cs (1)
305InternalPrintTicket result = DevModeToPrintTicket(new DevMode(devMode), scope, DevModeFields.All);
PrintConfig\PrintSchemaShim.cs (1)
172return new DevMode(Convert.FromBase64String(node.Value));
48 references to DevMode
ReachFramework (48)
MS\Internal\Printing\Configuration\DevMode.cs (10)
390public DevMode Clone() 392DevMode result = new DevMode(); 419public void Copy(DevMode src, DevModeFields fields) 454public static DevMode FromIntPtr(IntPtr devModeWPointer) 461short dmSize = Marshal.ReadInt16(devModeWPointer, DevMode.DEVMODEW_dmSizeByteOffset); 462short dmExtraSize = Marshal.ReadInt16(devModeWPointer, DevMode.DEVMODEW_dmDriverExtraByteOffset); 470public bool CompatibleCopy(DevMode ticketDevMode) 472if (DevMode.AreCompatible(this, ticketDevMode)) 487public static bool AreCompatible(DevMode a, DevMode b)
MS\Internal\Printing\Configuration\PRINTER_INFO_2.cs (1)
17public DevMode pDevMode;
MS\Internal\Printing\Configuration\PRINTER_INFO_8_AND_9.cs (1)
14public DevMode pDevMode;
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (2)
20public WinSpoolPrinterCapabilities(string deviceName, string driverName, string portName, DevMode devMode) 302public bool GetDefaultPaperSize(DevMode defaultDevMode, IList<short> paperSizeCodes, IList<DC_PAPER_SIZE> paperSizes, out DC_PAPER_SIZE defaultPaperSize)
PrintConfig\FallbackPTProvider.cs (16)
120DevMode defaultDevMode = GetDEVMODE(BaseDevModeType.UserDefault); 121DevMode devMode = defaultDevMode.Clone(); 264DevMode defaultDevMode = GetDEVMODE(BaseDevModeType.PrinterDefault); 267DevMode baseDevMode = defaultDevMode.Clone(); 271DevMode deltaDevMode = defaultDevMode.Clone(); 333DevMode result = GetDEVMODE(baseType); 410private bool Validate(DevMode devMode) 416DevMode originalDevMode = devMode.Clone(); 465private void PrintTicketToDevMode(DevMode devMode, InternalPrintTicket ticket, PrintTicketScope scope, DevModeFields supportedFields) 470DevMode ticketDevMode = PrintSchemaShim.TryGetEmbeddedDevMode(ticket, this.OemDriverNamespace); 480private InternalPrintTicket DevModeToPrintTicket(DevMode devmode, PrintTicketScope scope, DevModeFields supportedFields) 488private WinSpoolPrinterCapabilities GetCapabilities(DevMode devMode) 535private DevMode GetDEVMODE(BaseDevModeType baseType) 537DevMode result; 779PRINTER_INFO_2.pDevMode = DevMode.FromIntPtr(pDevMode); 824PRINTER_INFO_8_AND_9.pDevMode = DevMode.FromIntPtr(pDevMode);
PrintConfig\PrintSchemaShim.cs (18)
110public static bool TryEmbedDevMode(InternalPrintTicket ticket, string oemDriverNamespace, DevMode devMode) 151public static DevMode TryGetEmbeddedDevMode(InternalPrintTicket ticket, string oemDriverNamespace) 187public static void CopyDevModeToTicket(InternalPrintTicket baseTicket, DevMode deltaDevMode, PrintTicketScope scope, DevModeFields supportedFields) 279public static void CopyTicketToDevMode(DevMode baseDevMode, InternalPrintTicket deltaTicket, PrintTicketScope scope, DevModeFields supportedFields) 406public static bool PruneFeatures(DevMode inDevMode, WinSpoolPrinterCapabilities capabilities) 515private static void SetCollate(DevMode devMode, Collation collation) 534private static void SetColor(DevMode devMode, OutputColor outputColor) 559private static void SetCopies(DevMode devMode, int copyCount) 573private static void SetDuplex(DevMode devMode, Duplexing duplexing) 670private static void SetDefaultSource(DevMode devMode, InputBin inputBin) 767private static void SetPaperSize(DevMode devMode, PageMediaSizeName pageMediaSizeName) 772private static void SetPageHeight(DevMode devMode, double pageHeightInDIPs) 777private static void SetPageWidth(DevMode devMode, double pageWidthInDIPs) 906private static void SetMediaType(DevMode devMode, PageMediaType pageMediaType) 950private static void SetOrientation(DevMode devMode, PageOrientation pageOrientation) 987private static void SetPrintQuality(DevMode devMode, PageQualitativeResolution qualitativeResolution, int dpiX, int dpiY, DevModeFields supportedFields) 1071private static void SetScale(DevMode devMode, int scale) 1114private static void SetTTOption(DevMode devMode, DeviceFontSubstitution fontSubstitution, TrueTypeFontMode trueTypeFontMode)