30 writes to ImageScaling
System.Windows.Forms (7)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1724button.ImageScaling = ToolStripItemImageScaling.SizeToFit;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
244set => base.ImageScaling = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
135ImageScaling = ToolStripItemImageScaling.None; 510menuItem.ImageScaling = ImageScaling;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
164set => base.ImageScaling = value;
System\Windows\Forms\MDI\MDIControlStrip.cs (2)
57item.ImageScaling = ToolStripItemImageScaling.SizeToFit; 66_system.ImageScaling = ToolStripItemImageScaling.None;
System.Windows.Forms.Tests (13)
System\Windows\Forms\ToolStripItemTests.cs (11)
5410ImageScaling = value 5415item.ImageScaling = value; 5442item.ImageScaling = value; 5448item.ImageScaling = value; 5489item.ImageScaling = value; 5498item.ImageScaling = value; 5527item.ImageScaling = value; 5533item.ImageScaling = value; 5566item.ImageScaling = value; 5575item.ImageScaling = value; 5594Assert.Throws<InvalidEnumArgumentException>("value", () => item.ImageScaling = value);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
290ImageScaling = ToolStripItemImageScaling.None,
System\Windows\Forms\ToolStripRendererTests.cs (1)
198yield return new object[] { graphics, new SubToolStripItem { ImageScaling = imageScaling }, new Bitmap(10, 10), new Rectangle(1, 2, 3, 4) };
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
1056ImageScaling = ToolStripItemImageScaling.SizeToFit,
WinFormsControlsTest (9)
DragDrop.cs (3)
474ImageScaling = ToolStripItemImageScaling.SizeToFit, 485ImageScaling = ToolStripItemImageScaling.SizeToFit, 496ImageScaling = ToolStripItemImageScaling.SizeToFit,
MenuStripAndCheckedListBox.Designer.cs (6)
222this.uncheckedToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; 230this.uncheckedCheckOnClickToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; 240this.checkedToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; 250this.checkedCheckOnClickToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; 259this.indeterminateToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; 269this.indeterminateCheckOnClickToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
35 references to ImageScaling
System.Windows.Forms (9)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
243get => base.ImageScaling;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
310imageSize = (menuItem.ImageScaling == ToolStripItemImageScaling.SizeToFit) ? ImageScalingSize : menuItem.Image.Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
510if (item.ImageScaling == ToolStripItemImageScaling.None)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1559if (ImageScaling == ToolStripItemImageScaling.SizeToFit)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
510menuItem.ImageScaling = ImageScaling;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (1)
118if (_ownerItem.ImageScaling == ToolStripItemImageScaling.SizeToFit)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
767if (e.Item.ImageScaling == ToolStripItemImageScaling.None)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
795if (e.Item?.ImageScaling == ToolStripItemImageScaling.None)
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
163get => base.ImageScaling;
System.Windows.Forms.Tests (26)
System\Windows\Forms\ToolStripButtonTests.cs (6)
63Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 144Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 231Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 321Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 409Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 507Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
63Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 152Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 251Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 359Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling);
System\Windows\Forms\ToolStripItemTests.cs (13)
62Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 147Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 242Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 5412Assert.Equal(value, item.ImageScaling); 5416Assert.Equal(value, item.ImageScaling); 5443Assert.Equal(value, item.ImageScaling); 5449Assert.Equal(value, item.ImageScaling); 5490Assert.Equal(value, item.ImageScaling); 5499Assert.Equal(value, item.ImageScaling); 5528Assert.Equal(value, item.ImageScaling); 5534Assert.Equal(value, item.ImageScaling); 5567Assert.Equal(value, item.ImageScaling); 5576Assert.Equal(value, item.ImageScaling);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
67Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 335clone.ImageScaling.Should().Be(original.ImageScaling);