23 references to PrinterResolutionKind
System.Drawing (23)
commonui\System\Drawing\Printing\PageSettings.cs (5)
393if (printerResolution.Kind == PrinterResolutionKind.Custom) { 526if (resolutions[i].X == unchecked((int)(PrinterResolutionKind) mode.dmPrintQuality) 527&& resolutions[i].Y == unchecked((int)(PrinterResolutionKind) mode.dmYResolution)) 533if (resolutions[i].Kind == (PrinterResolutionKind) mode.dmPrintQuality) 538return new PrinterResolution(PrinterResolutionKind.Custom,
commonui\System\Drawing\Printing\PrinterResolution.cs (9)
27private PrinterResolutionKind kind; 38this.kind = PrinterResolutionKind.Custom; 41internal PrinterResolution(PrinterResolutionKind kind, int x, int y) { 55public PrinterResolutionKind Kind { 59if (!ClientUtils.IsEnumValid(value, unchecked((int)value), unchecked((int)PrinterResolutionKind.High), unchecked((int)PrinterResolutionKind.Custom))) 61throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(PrinterResolutionKind)); 110if (kind != PrinterResolutionKind.Custom) 111return "[PrinterResolution " + TypeDescriptor.GetConverter(typeof(PrinterResolutionKind)).ConvertToString((int) Kind)
commonui\System\Drawing\Printing\PrinterSettings.cs (9)
1269result[0] = new PrinterResolution(PrinterResolutionKind.High, -4, -1); 1270result[1] = new PrinterResolution(PrinterResolutionKind.Medium, -3, -1); 1271result[2] = new PrinterResolution(PrinterResolutionKind.Low, -2, -1); 1272result[3] = new PrinterResolution(PrinterResolutionKind.Draft, -1, -1); 1278result[0] = new PrinterResolution(PrinterResolutionKind.High, -4, -1); 1279result[1] = new PrinterResolution(PrinterResolutionKind.Medium, -3, -1); 1280result[2] = new PrinterResolution(PrinterResolutionKind.Low, -2, -1); 1281result[3] = new PrinterResolution(PrinterResolutionKind.Draft, -1, -1); 1289result[i + 4] = new PrinterResolution(PrinterResolutionKind.Custom, x, y);