27 references to Icon
System.Drawing.Common.Tests (4)
System\Drawing\IconTests.cs (4)
252
using Icon icon =
new
(typeof(IconTests), "48x48_multiple_entries_4bit.ico");
260
Assert.Throws<NullReferenceException>(() => new
Icon
(null, "48x48_multiple_entries_4bit.ico"));
269
AssertExtensions.Throws<ArgumentException>(null, () => new
Icon
(type, resource));
275
AssertExtensions.Throws<ArgumentNullException, ArgumentException>("resource", null, () => new
Icon
(typeof(Icon), null));
System.Windows.Forms (4)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
78
internal static Icon ErrorIcon => s_errorIcon ??= new
Icon
(typeof(DataGridView), "IconInError");
System\Windows\Forms\Design\ComponentEditorPage.cs (1)
93
get => _icon ??= new
Icon
(typeof(ComponentEditorPage), "ComponentEditorPage");
System\Windows\Forms\ErrorProvider\ErrorProvider.cs (1)
552
using Icon defaultIcon =
new
(typeof(ErrorProvider), "Error");
System\Windows\Forms\Form.cs (1)
872
s_defaultIcon ??= new
Icon
(typeof(Form), "wfc");
System.Windows.Forms.Design (19)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
125
using Icon icon =
new
(typeof(DesignerActionPanel), "Arrow.ico");
System\Windows\Forms\Design\Behavior\ContainerSelectorGlyph.cs (1)
48
_glyph ??= new
Icon
(typeof(ContainerSelectorGlyph), "MoverGlyph").ToBitmap();
System\Windows\Forms\Design\StandardCommandToolStripMenuItem.cs (1)
87
_image = new
Icon
(typeof(ToolStripMenuItem), _name).ToBitmap();
System\Windows\Forms\Design\StandardMenuStripVerb.cs (9)
410
image = new
Icon
(typeof(ToolStripMenuItem), "new").ToBitmap();
414
image = new
Icon
(typeof(ToolStripMenuItem), "open").ToBitmap();
418
image = new
Icon
(typeof(ToolStripMenuItem), "save").ToBitmap();
422
image = new
Icon
(typeof(ToolStripMenuItem), "printPreview").ToBitmap();
426
image = new
Icon
(typeof(ToolStripMenuItem), "print").ToBitmap();
430
image = new
Icon
(typeof(ToolStripMenuItem), "cut").ToBitmap();
434
image = new
Icon
(typeof(ToolStripMenuItem), "copy").ToBitmap();
438
image = new
Icon
(typeof(ToolStripMenuItem), "paste").ToBitmap();
442
image = new
Icon
(typeof(ToolStripMenuItem), "help").ToBitmap();
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
88
image = new
Icon
(typeof(ToolStripButton), "blank").ToBitmap();
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
610
image = new
Icon
(typeof(ToolStripButton), "blank").ToBitmap();
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
75
item.Image = new
Icon
(typeof(ToolStripMenuItem), imageName).ToBitmap();
123
Image = new
Icon
(typeof(ToolStripMenuItem), "image").ToBitmap(),
218
_editItemsToolStripMenuItem.Image = new
Icon
(typeof(ToolStripMenuItem), "editdropdownlist").ToBitmap();
533
image = new
Icon
(typeof(ToolStripButton), "blank").ToBitmap();
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
818
image = new
Icon
(typeof(ToolStripButton), "blank").ToBitmap();