30 references to PrintingPermissionLevel
System.Drawing (27)
commonui\System\Drawing\IntSecurity.cs (4)
18public static readonly PrintingPermission NoPrinting = new PrintingPermission(PrintingPermissionLevel.NoPrinting); 19public static readonly PrintingPermission SafePrinting = new PrintingPermission(PrintingPermissionLevel.SafePrinting); 20public static readonly PrintingPermission DefaultPrinting = new PrintingPermission(PrintingPermissionLevel.DefaultPrinting); 21public static readonly PrintingPermission AllPrinting = new PrintingPermission(PrintingPermissionLevel.AllPrinting);
commonui\System\Drawing\Printing\PrintingPermission.cs (19)
23private PrintingPermissionLevel printingLevel; 32printingLevel = PrintingPermissionLevel.AllPrinting; 35printingLevel = PrintingPermissionLevel.NoPrinting; 46public PrintingPermission(PrintingPermissionLevel printingLevel) { 56public PrintingPermissionLevel Level { 67private static void VerifyPrintingLevel(PrintingPermissionLevel level) { 68if (level < PrintingPermissionLevel.NoPrinting || level > PrintingPermissionLevel.AllPrinting) { 86return printingLevel == PrintingPermissionLevel.AllPrinting; 102return printingLevel == PrintingPermissionLevel.NoPrinting; 126PrintingPermissionLevel isectLevels = printingLevel < operand.printingLevel ? printingLevel : operand.printingLevel; 127if (isectLevels == PrintingPermissionLevel.NoPrinting) 147PrintingPermissionLevel isectLevels = printingLevel > operand.printingLevel ? printingLevel : operand.printingLevel; 148if (isectLevels == PrintingPermissionLevel.NoPrinting) 176securityElement.AddAttribute("Level", Enum.GetName(typeof(PrintingPermissionLevel), printingLevel)); 205printingLevel = PrintingPermissionLevel.AllPrinting; 209printingLevel = PrintingPermissionLevel.NoPrinting; 215printingLevel = (PrintingPermissionLevel)Enum.Parse(typeof(PrintingPermissionLevel), printing);
commonui\System\Drawing\Printing\PrintingPermissionAttribute.cs (4)
19PrintingPermissionLevel level; 27public PrintingPermissionLevel Level { 33if (value < PrintingPermissionLevel.NoPrinting || value > PrintingPermissionLevel.AllPrinting) {
System.Windows.Forms (3)
winforms\Managed\System\WinForms\WinFormsSecurity.cs (3)
115allPrinting = new PrintingPermission(PrintingPermissionLevel.AllPrinting); 210defaultPrinting = new PrintingPermission(PrintingPermissionLevel.DefaultPrinting); 342safePrinting = new PrintingPermission(PrintingPermissionLevel.SafePrinting);