63 references to ToolStripItemImageScaling
System.Windows.Forms (16)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1724button.ImageScaling = ToolStripItemImageScaling.SizeToFit;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
241public new ToolStripItemImageScaling 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 (5)
44private ToolStripItemImageScaling _imageScaling = ToolStripItemImageScaling.SizeToFit; 1168[DefaultValue(ToolStripItemImageScaling.SizeToFit)] 1171public ToolStripItemImageScaling ImageScaling 1559if (ImageScaling == ToolStripItemImageScaling.SizeToFit)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
135ImageScaling = ToolStripItemImageScaling.None;
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)
161public new ToolStripItemImageScaling ImageScaling
System\Windows\Forms\MDI\MDIControlStrip.cs (2)
57item.ImageScaling = ToolStripItemImageScaling.SizeToFit; 66_system.ImageScaling = ToolStripItemImageScaling.None;
System.Windows.Forms.Tests (37)
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\ToolStripControlHostTests.cs (3)
92Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 1314[EnumData<ToolStripItemImageScaling>] 1315public void ToolStripControlHost_ImageScaling_Set_GetReturnsExpected(ToolStripItemImageScaling value)
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 (17)
62Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 147Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 242Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 5405[EnumData<ToolStripItemImageScaling>] 5406public void ToolStripItem_ImageScaling_Set_GetReturnsExpected(ToolStripItemImageScaling value) 5420[InlineData(ToolStripItemImageScaling.None, 1)] 5421[InlineData(ToolStripItemImageScaling.SizeToFit, 0)] 5422public void ToolStripItem_ImageScaling_SetWithOwner_GetReturnsExpected(ToolStripItemImageScaling value, int expectedParentLayoutCallCount) 5460[InlineData(ToolStripItemImageScaling.None, 1)] 5461[InlineData(ToolStripItemImageScaling.SizeToFit, 0)] 5462public void ToolStripItem_ImageScaling_SetWithOwnerWithHandle_GetReturnsExpected(ToolStripItemImageScaling value, int expectedParentLayoutCallCount) 5513[EnumData<ToolStripItemImageScaling>] 5514public void ToolStripItem_ImageScaling_SetWithParent_GetReturnsExpected(ToolStripItemImageScaling value) 5545[EnumData<ToolStripItemImageScaling>] 5546public void ToolStripItem_ImageScaling_SetWithParentWithHandle_GetReturnsExpected(ToolStripItemImageScaling value) 5590[InvalidEnumData<ToolStripItemImageScaling>] 5591public void ToolStripItem_ImageScaling_SetInvalid_ThrowsInvalidEnumArgumentException(ToolStripItemImageScaling value)
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
67Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 290ImageScaling = ToolStripItemImageScaling.None,
System\Windows\Forms\ToolStripRendererTests.cs (2)
196foreach (ToolStripItemImageScaling imageScaling in Enum.GetValues(typeof(ToolStripItemImageScaling)))
System\Windows\Forms\ToolStripSeparatorTests.cs (3)
60Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 511[EnumData<ToolStripItemImageScaling>] 512public void ToolStripSeparator_ImageScaling_Set_GetReturnsExpected(ToolStripItemImageScaling value)
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;