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