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