44 references to SystemIcons
System.Drawing (1)
System.Drawing.cs (1)
157[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.SystemIcons))]
System.Drawing.Common.Tests (30)
mono\System.Drawing\GraphicsTests.cs (12)
2345g.DrawIcon(SystemIcons.Application, new Rectangle(0, 0, 40, 20)); 2348g.DrawIcon(SystemIcons.Asterisk, new Rectangle(0, 0, 0, 0)); 2350g.DrawIcon(SystemIcons.Error, new Rectangle(20, 40, 0, 0)); 2352g.DrawIconUnstretched(SystemIcons.WinLogo, new Rectangle(10, 20, -1, 0)); 2353g.DrawIconUnstretched(SystemIcons.WinLogo, new Rectangle(20, 10, 0, -1)); 2369g.DrawIcon(SystemIcons.Exclamation, 4, 2); 2370g.DrawIcon(SystemIcons.Hand, 0, 0); 2386g.DrawIconUnstretched(SystemIcons.Information, new Rectangle(0, 0, 40, 20)); 2389g.DrawIconUnstretched(SystemIcons.Question, new Rectangle(0, 0, 0, 0)); 2391g.DrawIconUnstretched(SystemIcons.Warning, new Rectangle(20, 40, 0, 0)); 2393g.DrawIconUnstretched(SystemIcons.WinLogo, new Rectangle(10, 20, -1, 0)); 2394g.DrawIconUnstretched(SystemIcons.WinLogo, new Rectangle(20, 10, 0, -1));
System\Drawing\IconTests.cs (4)
293using var icon = Icon.FromHandle(SystemIcons.Hand.Handle); 297Assert.Equal(SystemIcons.Hand.Width, clone.Width); 298Assert.Equal(SystemIcons.Hand.Height, clone.Height); 299Assert.Equal(SystemIcons.Hand.Size, clone.Size);
System\Drawing\SystemIconsTests.cs (14)
10yield return Icon(() => SystemIcons.Application); 11yield return Icon(() => SystemIcons.Asterisk); 12yield return Icon(() => SystemIcons.Error); 13yield return Icon(() => SystemIcons.Exclamation); 14yield return Icon(() => SystemIcons.Hand); 15yield return Icon(() => SystemIcons.Information); 16yield return Icon(() => SystemIcons.Question); 17yield return Icon(() => SystemIcons.Shield); 18yield return Icon(() => SystemIcons.Warning); 19yield return Icon(() => SystemIcons.WinLogo); 36using Icon icon = SystemIcons.GetStockIcon(stockIcon); 43using Icon icon = SystemIcons.GetStockIcon(StockIconId.Lock, size: 256); 52Assert.Throws<ArgumentException>(() => SystemIcons.GetStockIcon((StockIconId)(-1))); 68using Icon icon = SystemIcons.GetStockIcon(StockIconId.Shield, options);
System.Windows.Forms (2)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
58_pictureBox.Image = SystemIcons.Warning.ToBitmap();
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
252using Icon icon = SystemIcons.GetStockIcon(stockIconId, _scaledPictureWidth);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.cs (1)
2285using Icon err = SystemIcons.GetStockIcon(StockIconId.Error);
System.Windows.Forms.Design.Tests (2)
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (1)
405using Icon icon = new(SystemIcons.Exclamation, 16, 16);
System\Windows\Forms\Design\ImageListImageTests.cs (1)
77using Icon icon = SystemIcons.Application;
System.Windows.Forms.Primitives.Tests (2)
Interop\Ole32\IPictureTests.cs (2)
51using Icon icon = SystemIcons.Question; 71using Icon icon = SystemIcons.Exclamation;
System.Windows.Forms.Tests (3)
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (3)
75Icon errorIcon = SystemIcons.Error; 93Icon errorIcon = SystemIcons.Error; 138Icon exclamationIcon = SystemIcons.Exclamation;
WinFormsControlsTest (3)
Buttons.cs (1)
108Image = SystemIcons.GetStockIcon(StockIconId.DesktopPC).ToBitmap()
ErrorProviderTest.Designer.cs (1)
47this.errorProvider2.Icon = SystemIcons.Shield;
Program.cs (1)
19Icon = SystemIcons.GetStockIcon(StockIconId.Shield, StockIconOptions.SmallIcon)