29 references to SizeToFit
System.Windows.Forms (7)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1724button.ImageScaling = ToolStripItemImageScaling.SizeToFit;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
310imageSize = (menuItem.ImageScaling == ToolStripItemImageScaling.SizeToFit) ? ImageScalingSize : menuItem.Image.Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (3)
44private ToolStripItemImageScaling _imageScaling = ToolStripItemImageScaling.SizeToFit; 1168[DefaultValue(ToolStripItemImageScaling.SizeToFit)] 1559if (ImageScaling == ToolStripItemImageScaling.SizeToFit)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (1)
118if (_ownerItem.ImageScaling == ToolStripItemImageScaling.SizeToFit)
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
57item.ImageScaling = ToolStripItemImageScaling.SizeToFit;
System.Windows.Forms.Tests (18)
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 (1)
92Assert.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 (5)
62Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 147Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 242Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling); 5421[InlineData(ToolStripItemImageScaling.SizeToFit, 0)] 5461[InlineData(ToolStripItemImageScaling.SizeToFit, 0)]
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
67Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
60Assert.Equal(ToolStripItemImageScaling.SizeToFit, item.ImageScaling);
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
1056ImageScaling = ToolStripItemImageScaling.SizeToFit,
WinFormsControlsTest (3)
DragDrop.cs (3)
474ImageScaling = ToolStripItemImageScaling.SizeToFit, 485ImageScaling = ToolStripItemImageScaling.SizeToFit, 496ImageScaling = ToolStripItemImageScaling.SizeToFit,