47 writes to ImageSize
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
513
images.
ImageSize
= System.Drawing.Size.Subtract(
System.Windows.Forms (5)
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
745
private void ResetImageSize() =>
ImageSize
= s_defaultImageSize;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2069
ImageSize
= s_largeButtonSize
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
1794
_internalStateImageList.
ImageSize
= (Size)StateImageSize;
1980
newImageList.
ImageSize
= (Size)StateImageSize;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
184
ImageSize
= new Size(16, 16)
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1944
ImageSize
= scaledSize
System\Windows\Forms\Design\ImageListDesigner.cs (1)
63
ImageList.
ImageSize
= value;
System.Windows.Forms.Tests (38)
SerializableTypesTests.cs (1)
77
ImageSize
= new Size(16, 16),
System\Windows\Forms\ButtonBaseTests.cs (4)
2590
imageList1.
ImageSize
= new Size(1, 2);
2597
imageList1.
ImageSize
= new Size(2, 3);
2628
imageList1.
ImageSize
= new Size(1, 2);
2638
imageList1.
ImageSize
= new Size(2, 3);
System\Windows\Forms\ImageListTests.cs (25)
241
ImageSize
= value
247
list.
ImageSize
= value;
260
list.
ImageSize
= new Size(10, 10);
266
list.
ImageSize
= new Size(10, 10);
272
list.
ImageSize
= new Size(11, 11);
279
list.
ImageSize
= new Size(10, 10);
292
list.
ImageSize
= value;
297
list.
ImageSize
= value;
317
list.
ImageSize
= new Size(10, 10);
324
list.
ImageSize
= new Size(10, 10);
331
list.
ImageSize
= new Size(11, 10);
338
list.
ImageSize
= new Size(11, 11);
345
list.
ImageSize
= new Size(12, 12);
353
list.
ImageSize
= new Size(10, 10);
368
list.
ImageSize
= new Size(32, 32);
385
list.
ImageSize
= new Size(32, 32);
402
Assert.Throws<ArgumentException>("value", () => list.
ImageSize
= Size.Empty);
417
Assert.Throws<ArgumentOutOfRangeException>("value", () => list.
ImageSize
= new Size(width, 1));
425
Assert.Throws<ArgumentOutOfRangeException>("value", () => list.
ImageSize
= new Size(1, height));
459
ImageSize
= new Size(32, 32)
496
ImageSize
= new Size(32, 32)
523
ImageSize
= new Size(32, 32)
548
ImageSize
= new Size(32, 32)
573
ImageSize
= new Size(32, 32)
597
ImageSize
= new Size(32, 32)
System\Windows\Forms\TabControlTests.cs (4)
1382
imageList1.
ImageSize
= new Size(1, 2);
1389
imageList1.
ImageSize
= new Size(2, 3);
1419
imageList1.
ImageSize
= new Size(1, 2);
1430
imageList1.
ImageSize
= new Size(2, 3);
System\Windows\Forms\TreeViewTests.cs (4)
2616
imageList.
ImageSize
= new Size(10, 10);
2632
imageList.
ImageSize
= new Size(10, 10);
4593
imageList.
ImageSize
= new Size(10, 10);
4609
imageList.
ImageSize
= new Size(10, 10);
WinFormsControlsTest (1)
ListViewTest.Designer.cs (1)
130
this.LargeImageList.
ImageSize
= new System.Drawing.Size(256, 256);
47 references to ImageSize
System.Windows.Forms (9)
System\Windows\Forms\Controls\ImageList\ImageList.cs (4)
151
throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(
ImageSize
), "Size.Empty"), nameof(value));
333
else if (!size.Equals(
ImageSize
))
336
bitmap = new Bitmap(source,
ImageSize
);
757
: $"{base.ToString()} Images.Count: {Images.Count}, ImageSize: {
ImageSize
}";
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (3)
394
if (value.Width == 0 || (value.Width % _owner.
ImageSize
.Width) != 0)
399
if (value.Height != _owner.
ImageSize
.Height)
404
int nImages = value.Width / _owner.
ImageSize
.Width;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
927
/// The size of the icons for the <see cref="GroupImageList"/> is specified by the <see cref="ImageList.
ImageSize
"/> property.
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1571
imageSize = Owner?.ImageList?.
ImageSize
?? Size.Empty;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1938
Size scaledSize = ScaleHelper.ScaleToDpi(imageList.
ImageSize
, dpi);
System\Windows\Forms\Design\ImageListActionList.cs (1)
36
get => (Component as ImageList)!.
ImageSize
;
System\Windows\Forms\Design\ImageListDesigner.cs (1)
59
get => ImageList.
ImageSize
;
System.Windows.Forms.Tests (35)
System\Windows\Forms\ImageListStreamerTests.cs (4)
39
Assert.Equal(imageListBf.
ImageSize
, imageListMs.
ImageSize
);
66
Assert.Equal(imageListBf.
ImageSize
, imageListMs.
ImageSize
);
System\Windows\Forms\ImageListTests.cs (31)
21
Assert.Equal(new Size(16, 16), list.
ImageSize
);
39
Assert.Equal(new Size(16, 16), list.
ImageSize
);
243
Assert.Equal(value, list.
ImageSize
);
248
Assert.Equal(value, list.
ImageSize
);
261
Assert.Equal(new Size(10, 10), list.
ImageSize
);
267
Assert.Equal(new Size(10, 10), list.
ImageSize
);
273
Assert.Equal(new Size(11, 11), list.
ImageSize
);
280
Assert.Equal(new Size(10, 10), list.
ImageSize
);
293
Assert.Equal(value, list.
ImageSize
);
298
Assert.Equal(value, list.
ImageSize
);
318
Assert.Equal(new Size(10, 10), list.
ImageSize
);
325
Assert.Equal(new Size(10, 10), list.
ImageSize
);
332
Assert.Equal(new Size(11, 10), list.
ImageSize
);
339
Assert.Equal(new Size(11, 11), list.
ImageSize
);
346
Assert.Equal(new Size(12, 12), list.
ImageSize
);
354
Assert.Equal(new Size(10, 10), list.
ImageSize
);
363
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.
ImageSize
)];
365
Assert.Equal(new Size(16, 16), list.
ImageSize
);
369
Assert.Equal(new Size(32, 32), list.
ImageSize
);
373
Assert.Equal(new Size(16, 16), list.
ImageSize
);
380
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.
ImageSize
)];
382
Assert.Equal(new Size(16, 16), list.
ImageSize
);
386
Assert.Equal(new Size(32, 32), list.
ImageSize
);
390
Assert.Equal(new Size(16, 16), list.
ImageSize
);
474
Assert.Equal(new Size(32, 32), list.
ImageSize
);
483
Assert.Equal(new Size(32, 32), list.
ImageSize
);
511
Assert.Equal(new Size(16, 16), list.
ImageSize
);
536
Assert.Equal(new Size(16, 16), list.
ImageSize
);
561
Assert.Equal(new Size(16, 16), list.
ImageSize
);
585
Assert.Equal(new Size(16, 16), list.
ImageSize
);
609
Assert.Equal(new Size(16, 16), list.
ImageSize
);