6 overrides of Image
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
232public override Image? Image
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
123public override Image? Image
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
71public override Image? Image
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
287public override Image? Image
System\Windows\Forms\Design\ItemTypeToolStripMenuItem.cs (1)
32public override Image? Image
System\Windows\Forms\Design\StandardCommandToolStripMenuItem.cs (1)
74public override Image? Image
176 writes to Image
Accessibility_Core_App (46)
DataControls.Designer.cs (9)
113this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image"))); 130this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image"))); 139this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image"))); 148this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image"))); 176this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image"))); 185this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image"))); 198this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); 212this.toolStripSplitButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripSplitButton1.Image"))); 220this.toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image")));
Menu_Toolbars_controls.Designer.cs (17)
164newToolStripMenuItem.Image = (Image)resources.GetObject("newToolStripMenuItem.Image"); 173openToolStripMenuItem.Image = (Image)resources.GetObject("openToolStripMenuItem.Image"); 187saveToolStripMenuItem.Image = (Image)resources.GetObject("saveToolStripMenuItem.Image"); 207printToolStripMenuItem.Image = (Image)resources.GetObject("printToolStripMenuItem.Image"); 216printPreviewToolStripMenuItem.Image = (Image)resources.GetObject("printPreviewToolStripMenuItem.Image"); 262cutToolStripMenuItem.Image = (Image)resources.GetObject("cutToolStripMenuItem.Image"); 271copyToolStripMenuItem.Image = (Image)resources.GetObject("copyToolStripMenuItem.Image"); 280pasteToolStripMenuItem.Image = (Image)resources.GetObject("pasteToolStripMenuItem.Image"); 435toolStripDropDownButton1.Image = (Image)resources.GetObject("toolStripDropDownButton1.Image"); 461toolStripSplitButton1.Image = (Image)resources.GetObject("toolStripSplitButton1.Image"); 514newToolStripButton.Image = (Image)resources.GetObject("newToolStripButton.Image"); 528toolStripButton1.Image = (Image)resources.GetObject("toolStripButton1.Image"); 538toolStripButton2.Image = (Image)resources.GetObject("toolStripButton2.Image"); 550toolStripButton3.Image = (Image)resources.GetObject("toolStripButton3.Image"); 561toolStripButton4.Image = (Image)resources.GetObject("toolStripButton4.Image"); 573toolStripButton5.Image = (Image)resources.GetObject("toolStripButton5.Image"); 584toolStripButton6.Image = (Image)resources.GetObject("toolStripButton6.Image");
ToolStripContainer.Designer.cs (20)
153this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); 164this.toolStripSplitButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripSplitButton1.Image"))); 179this.newToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripButton.Image"))); 188this.openToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripButton.Image"))); 197this.saveToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripButton.Image"))); 206this.printToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("printToolStripButton.Image"))); 220this.cutToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("cutToolStripButton.Image"))); 229this.copyToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("copyToolStripButton.Image"))); 238this.pasteToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("pasteToolStripButton.Image"))); 252this.helpToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("helpToolStripButton.Image"))); 293this.toolStripDropDownButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownButton1.Image"))); 308this.toolStripSplitButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripSplitButton2.Image"))); 382this.newToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("newToolStripMenuItem.Image"))); 390this.openToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("openToolStripMenuItem.Image"))); 403this.saveToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem.Image"))); 422this.printToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("printToolStripMenuItem.Image"))); 430this.printPreviewToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("printPreviewToolStripMenuItem.Image"))); 482this.cutToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("cutToolStripMenuItem.Image"))); 490this.copyToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("copyToolStripMenuItem.Image"))); 498this.pasteToolStripMenuItem.Image = ((System.Drawing.Image)(resources.GetObject("pasteToolStripMenuItem.Image")));
DesignSurface (3)
MainForm.Designer.cs (3)
213this.ToolStripMenuItemCut.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripMenuItemCut.Image"))); 223this.ToolStripMenuItemCopy.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripMenuItemCopy.Image"))); 233this.ToolStripMenuItemPaste.Image = ((System.Drawing.Image)(resources.GetObject("ToolStripMenuItemPaste.Image")));
System.Windows.Forms (15)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
235set => base.Image = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
170Image = image; 3389public virtual void ResetImage() => Image = null;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
134Image = GetNativeMenuItemImage(); 508menuItem.Image = Image;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
126set => base.Image = value;
System\Windows\Forms\DataBinding\BindingNavigator.cs (6)
188MoveFirstItem.Image = moveFirstImage; 189MovePreviousItem.Image = movePreviousImage; 190MoveNextItem.Image = moveNextImage; 191MoveLastItem.Image = moveLastImage; 192AddNewItem.Image = addNewImage; 193DeleteItem.Image = deleteImage;
System\Windows\Forms\MDI\MDIControlStrip.cs (3)
62_system.Image = GetTargetWindowIcon(); 90_system.Image = GetTargetWindowIcon(); 130_system.Image = GetTargetWindowIcon();
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (3)
75item.Image = new Icon(typeof(ToolStripMenuItem), imageName).ToBitmap(); 123Image = new Icon(typeof(ToolStripMenuItem), "image").ToBitmap(), 218_editItemsToolStripMenuItem.Image = new Icon(typeof(ToolStripMenuItem), "editdropdownlist").ToBitmap();
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1443_addItemButton.Image = ScaleHelper.GetSmallIconResourceAsBitmap(
System.Windows.Forms.Tests (99)
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (5)
33yield return new object[] { graphics, new ToolStripButton() { Image = image }, new Rectangle(1, 2, 3, 4), image }; 39Image = image 47Image = image 80Image = image 93yield return new object[] { new ToolStripButton() { Image = new Bitmap(10, 10) }, new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) };
System\Windows\Forms\ToolStripItemTests.cs (93)
1125Image = image, 1162Image = image, 1217Image = image, 1260Image = image, 1306Image = image, 1355Image = image, 1398Image = image, 1432Image = image, 2525Image = image, 2598Image = image, 2621Image = image, 2648Image = image, 2685Image = image, 2713Image = image, 2756Image = image, 2783Image = image, 2820Image = image, 2860Image = image, 3799item.Image = value; 3804item.Image = value; 3830item.Image = value; 3835item.Image = value; 3847Image = oldValue, 3851item.Image = value; 3856item.Image = value; 3868Image = oldValue, 3873item.Image = value; 3878item.Image = value; 3920item.Image = value; 3927item.Image = value; 3972item.Image = value; 3982item.Image = value; 4013item.Image = value; 4020item.Image = value; 4055item.Image = value; 4065item.Image = value; 4088item.Image = image; 4116item.Image = otherImage; 4133item.Image = image; 4161item.Image = otherImage; 4409Image = image, 4761Image = image 4840Image = image 4917Image = image, 5254Image = image 5346Image = image 5614Image = image 5631Image = image, 5651Image = image 5684Image = image 5718Image = image 5751Image = image 6970Image = image, 7026Image = image, 9175Image = image, 9212Image = image, 9267Image = image, 9310Image = image, 9356Image = image, 9405Image = image, 9448Image = image, 9482Image = image, 9877Image = image 9914Image = image, 9956Image = image, 10028Image = image 10067Image = image, 10111Image = image, 11113Image = image 11142Image = image 11172Image = image, 11205Image = image, 11251Image = image, 11284Image = image, 12545Image = image, 12559Image = image 13206Image = image 13235Image = image 13265Image = image, 13309Image = image, 13375Image = image, 13441Image = image, 13501Image = image, 13545Image = image, 14168item.Image = new Bitmap(10, 10); 14835Image = image 14873Image = image, 14929Image = image, 14972Image = image, 15018Image = image, 15067Image = image, 15110Image = image, 15144Image = image,
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
288Image = new Bitmap(10, 10),
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
1055Image = _dragAcceptBmp,
WinFormsControlsTest (8)
Dialogs.cs (1)
29Image = (Bitmap?)resources.GetObject("OpenDialog"),
DragDrop.cs (4)
449Image = _toolStripNyanCatBmp, 477Image = _toolStripDragAcceptBmp 488Image = _toolStripNyanCatBmp 499Image = _toolStripAsciiCatBmp
MessageBoxes.cs (1)
20Image = (System.Drawing.Bitmap?)(resources.GetObject("OpenDialog")),
ToolStripTests.cs (2)
20toolStrip2_Button4.Image = Image.FromFile("Images\\SmallA.bmp"); 22toolStrip2_Button5.Image = Image.FromFile("Images\\SmallABlue.bmp");
171 references to Image
System.Windows.Forms (22)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
234get => base.Image;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
308if (menuItem.Image is not null) 310imageSize = (menuItem.ImageScaling == ToolStripItemImageScaling.SizeToFit) ? ImageScalingSize : menuItem.Image.Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (11)
1045if (Image == value) 1089if (Image is Bitmap currentImage && value != Color.Empty) 1711Image? image = Image; 2035Image? image = Image; 2444ImageAnimator.UpdateFrames(Image); 3329/// Determines if the <see cref="Image"/> property needs to be persisted. 3332private bool ShouldSerializeImage() => Image is not null && ImageIndexer.ActualIndex < 0; 3335/// Determines if the <see cref="Image"/> property needs to be persisted. 3339=> Image is not null && ImageIndexer.ActualIndex >= 0 && !string.IsNullOrEmpty(ImageIndexer.Key); 3342/// Determines if the <see cref="Image"/> property needs to be persisted. 3346=> Image is not null && ImageIndexer.ActualIndex >= 0 && ImageIndexer.Index != ImageList.Indexer.DefaultIndex;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemImageRenderEventArgs.cs (1)
14Image = (item.RightToLeftAutoMirrorImage && item.RightToLeft == RightToLeft.Yes) ? item.MirroredImage : item.Image;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
508menuItem.Image = Image; 1015if (menuItemInternalLayout.PaintImage && (DisplayStyle & ToolStripItemDisplayStyle.Image) == ToolStripItemDisplayStyle.Image && Image is not null) 1028if ((DisplayStyle & ToolStripItemDisplayStyle.Image) == ToolStripItemDisplayStyle.Image && Image is not null)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (1)
125Image? image = _ownerItem.Image ?? _ownerItem.CheckedImage;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
125get => base.Image;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
228_splitButtonButton.Image = Image;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
77return _owner.Image;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
813if (newItem.Image is null && newItem is ToolStripButton)
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\ItemTypeToolStripMenuItemTests.cs (1)
36_item.Image.Should().BeOfType<Bitmap>().Which.Should().Be(ToolStripDesignerUtils.GetToolboxBitmap(typeof(string)));
System.Windows.Forms.Tests (147)
BindingNavigatorTests.cs (1)
104Assert.NotNull(item.Image);
System\Windows\Forms\AccessibleObjects\ToolStripDropDownButton.ToolStripDropDownButtonAccessibleObjectTests.cs (1)
120toolStripDropDownButton.Image.Should().Be(image);
System\Windows\Forms\MdiControlStripTests.cs (1)
188Assert.NotNull(item.Image);
System\Windows\Forms\MenuStripTests.cs (1)
452Assert.Same(image, item.Image);
System\Windows\Forms\StatusStripTests.cs (1)
887Assert.Same(image, button.Image);
System\Windows\Forms\ToolStripButtonTests.cs (6)
59Assert.Null(item.Image); 140Assert.Null(item.Image); 227Assert.Same(image, item.Image); 317Assert.Same(image, item.Image); 405Assert.Equal(image, item.Image); 503Assert.Equal(image, item.Image);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
59Assert.Null(item.Image); 148Assert.Equal(image, item.Image); 247Assert.Equal(image, item.Image); 355Assert.Equal(image, item.Image);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
2964Assert.Same(image, button.Image);
System\Windows\Forms\ToolStripItemCollectionTests.cs (2)
369item.Image.Should().Be(image); 384item.Image.Should().Be(image);
System\Windows\Forms\ToolStripItemTests.cs (103)
58Assert.Null(item.Image); 143Assert.Equal(image, item.Image); 238Assert.Equal(image, item.Image); 3684Assert.Null(item.Image); 3687Assert.Null(item.Image); 3705Assert.NotNull(item.Image); 3708Assert.Same(item.Image, item.Image); 3726Assert.Null(item.Image); 3729Assert.Null(item.Image); 3750Assert.Null(item.Image); 3753Assert.Null(item.Image); 3773Assert.Null(item.Image); 3776Assert.Null(item.Image); 3800Assert.Equal(value, item.Image); 3805Assert.Equal(value, item.Image); 3831Assert.Equal(value, item.Image); 3836Assert.Equal(value, item.Image); 3852Assert.Equal(value, item.Image); 3857Assert.Equal(value, item.Image); 3874Assert.Equal(value, item.Image); 3879Assert.Equal(value, item.Image); 3921Assert.Equal(value, item.Image); 3928Assert.Equal(value, item.Image); 3973Assert.Equal(value, item.Image); 3983Assert.Equal(value, item.Image); 4014Assert.Equal(value, item.Image); 4021Assert.Equal(value, item.Image); 4056Assert.Equal(value, item.Image); 4066Assert.Equal(value, item.Image); 4083PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)]; 4089Assert.Same(image, item.Image); 4093Assert.Null(item.Image); 4100PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)]; 4117Assert.Same(otherImage, item.Image); 4121Assert.Null(item.Image); 4128PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)]; 4134Assert.Same(image, item.Image); 4138Assert.Null(item.Image); 4145PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.Image)]; 4162Assert.Same(otherImage, item.Image); 4166Assert.Null(item.Image); 4391Assert.Null(item.Image); 4397Assert.Null(item.Image); 4415Assert.Null(item.Image); 4422Assert.Null(item.Image); 4439Assert.Null(item.Image); 4446Assert.Null(item.Image); 4475Assert.Null(item.Image); 4482Assert.Null(item.Image); 4525Assert.Equal(expectedHasImage, item.Image is not null); 4533Assert.Equal(expectedHasImage, item.Image is not null); 4576Assert.Null(item.Image); 4586Assert.Null(item.Image); 4618Assert.Null(item.Image); 4625Assert.Null(item.Image); 4660Assert.Null(item.Image); 4667Assert.Null(item.Image); 4703Assert.Null(item.Image); 4713Assert.Null(item.Image); 4901Assert.Null(item.Image); 4907Assert.Null(item.Image); 4922Assert.Null(item.Image); 4928Assert.Null(item.Image); 4942Assert.Null(item.Image); 4948Assert.Null(item.Image); 4975Assert.Null(item.Image); 4982Assert.Null(item.Image); 5027Assert.Equal(expectedHasImage, item.Image is not null); 5035Assert.Equal(expectedHasImage, item.Image is not null); 5076Assert.Null(item.Image); 5086Assert.Null(item.Image); 5116Assert.Null(item.Image); 5123Assert.Null(item.Image); 5156Assert.Null(item.Image); 5163Assert.Null(item.Image); 5197Assert.Null(item.Image); 5207Assert.Null(item.Image); 9856Assert.Null(item.Image); 9862Assert.Null(item.Image); 9882Assert.Equal(callCount > 0, item.Image is null); 9892Assert.Null(item.Image); 9898Assert.Null(item.Image); 9920Assert.Equal(callCount > 0, item.Image is null); 9930Assert.Null(item.Image); 9938Assert.Null(item.Image); 9962Assert.Equal(callCount > 0, item.Image is null); 9972Assert.Null(item.Image); 9980Assert.Null(item.Image); 10005Assert.Null(item.Image); 10011Assert.Null(item.Image); 10033Assert.Equal(callCount > 0, item.Image is null); 10043Assert.Equal(disposing, item.Image is null); 10049Assert.Equal(disposing, item.Image is null); 10073Assert.Equal(callCount > 0, item.Image is null); 10083Assert.Equal(disposing, item.Image is null); 10091Assert.Equal(disposing, item.Image is null); 10117Assert.Equal(callCount > 0, item.Image is null); 10127Assert.Equal(disposing, item.Image is null); 10135Assert.Equal(disposing, item.Image is null); 14165Assert.Null(item.Image); 14170Assert.Null(item.Image); 14174Assert.Null(item.Image);
System\Windows\Forms\ToolStripLabelTests.cs (6)
21toolStripLabel.Image.Should().BeNull(); 33toolStripLabel.Image.Should().BeNull(); 44toolStripLabel.Image.Should().Be(image); 58toolStripLabel.Image.Should().Be(image); 72toolStripLabel.Image.Should().Be(image); 88toolStripLabel.Image.Should().Be(image);
System\Windows\Forms\ToolStripMenuItemTests.cs (8)
63Assert.Null(item.Image); 195itemWithImage.Image.Should().Be(image); 200itemWithTextAndImage.Image.Should().Be(image); 215item.Image.Should().Be(image); 233item.Image.Should().Be(image); 249item.Image.Should().Be(image); 333clone.Image.Should().Be(original.Image);
System\Windows\Forms\ToolStripSplitButtonTests.cs (7)
82_toolStripSplitButton.Image.Should().BeNull(); 92_toolStripSplitButton.Image.Should().BeNull(); 103toolStripSplitButton.Image.Should().Be(image); 114toolStripSplitButton.Image.Should().Be(image); 128toolStripSplitButton.Image.Should().Be(image); 145toolStripSplitButton.Image.Should().Be(image); 163toolStripSplitButton.Image.Should().Be(image);
System\Windows\Forms\ToolStripStatusLabelTests.cs (4)
39label.Image.Should().Be(sampleImage); 49label.Image.Should().Be(sampleImage); 62label.Image.Should().Be(sampleImage); 78toolStripStatusLabel.Image.Should().Be(image);
System\Windows\Forms\ToolStripTests.cs (1)
4282Assert.Same(image, button.Image);