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