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