29 references to SizeToFit
System.Windows.Forms (7)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1724
button.ImageScaling = ToolStripItemImageScaling.
SizeToFit
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
310
imageSize = (menuItem.ImageScaling == ToolStripItemImageScaling.
SizeToFit
) ? ImageScalingSize : menuItem.Image.Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (3)
44
private ToolStripItemImageScaling _imageScaling = ToolStripItemImageScaling.
SizeToFit
;
1168
[DefaultValue(ToolStripItemImageScaling.
SizeToFit
)]
1559
if (ImageScaling == ToolStripItemImageScaling.
SizeToFit
)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (1)
118
if (_ownerItem.ImageScaling == ToolStripItemImageScaling.
SizeToFit
)
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
57
item.ImageScaling = ToolStripItemImageScaling.
SizeToFit
;
System.Windows.Forms.Tests (18)
System\Windows\Forms\ToolStripButtonTests.cs (6)
63
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
144
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
231
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
321
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
409
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
507
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
92
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
63
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
152
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
251
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
359
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
System\Windows\Forms\ToolStripItemTests.cs (5)
62
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
147
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
242
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
5421
[InlineData(ToolStripItemImageScaling.
SizeToFit
, 0)]
5461
[InlineData(ToolStripItemImageScaling.
SizeToFit
, 0)]
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
67
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
60
Assert.Equal(ToolStripItemImageScaling.
SizeToFit
, item.ImageScaling);
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
999
ImageScaling = ToolStripItemImageScaling.
SizeToFit
,
WinFormsControlsTest (3)
DragDrop.cs (3)
474
ImageScaling = ToolStripItemImageScaling.
SizeToFit
,
485
ImageScaling = ToolStripItemImageScaling.
SizeToFit
,
496
ImageScaling = ToolStripItemImageScaling.
SizeToFit
,