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