34 writes to ColorDepth
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
518images.ColorDepth = ColorDepth.Depth32Bit;
System.Windows.Forms (1)
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
98private void ResetColorDepth() => ColorDepth = ColorDepth.Depth32Bit;
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
1913ColorDepth = ColorDepth.Depth24Bit 1925ColorDepth = ColorDepth.Depth24Bit 1943ColorDepth = ColorDepth.Depth24Bit,
System\Windows\Forms\Design\ImageListDesigner.cs (1)
31ImageList.ColorDepth = value;
System.Windows.Forms.Tests (25)
System\Windows\Forms\ImageList.ImageCollectionTests.cs (3)
48ColorDepth = depth 96ColorDepth = depth 197ColorDepth = ColorDepth.Depth32Bit
System\Windows\Forms\ImageListTests.cs (22)
60ColorDepth = value 66list.ColorDepth = value; 79list.ColorDepth = ColorDepth.Depth24Bit; 85list.ColorDepth = ColorDepth.Depth24Bit; 91list.ColorDepth = ColorDepth.Depth16Bit; 98list.ColorDepth = ColorDepth.Depth24Bit; 111list.ColorDepth = value; 116list.ColorDepth = value; 136list.ColorDepth = ColorDepth.Depth24Bit; 143list.ColorDepth = ColorDepth.Depth24Bit; 150list.ColorDepth = ColorDepth.Depth16Bit; 159list.ColorDepth = ColorDepth.Depth24Bit; 174list.ColorDepth = ColorDepth.Depth8Bit; 191list.ColorDepth = ColorDepth.Depth8Bit; 210ColorDepth = colorDepth 223Assert.Throws<InvalidEnumArgumentException>("value", () => list.ColorDepth = value); 458ColorDepth = colorDepth, 495ColorDepth = colorDepth, 522ColorDepth = colorDepth, 547ColorDepth = colorDepth, 572ColorDepth = colorDepth, 596ColorDepth = colorDepth,
TrimTestBinaryDeserialization (1)
Form1.Designer.cs (1)
40imageList1.ColorDepth = ColorDepth.Depth32Bit;
WinFormsControlsTest (2)
ListViewTest.Designer.cs (1)
129this.LargeImageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit;
TreeViewTest.Designer.cs (1)
54this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
36 references to ColorDepth
System.Windows.Forms (1)
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
614if (ColorDepth == ColorDepth.Depth32Bit)
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ImageListActionList.cs (1)
24get => (Component as ImageList)!.ColorDepth;
System\Windows\Forms\Design\ImageListDesigner.cs (1)
27get => ImageList.ColorDepth;
System.Windows.Forms.Tests (33)
System\Windows\Forms\ImageListStreamerTests.cs (4)
37Assert.Equal(imageListBf.ColorDepth, imageListMs.ColorDepth); 64Assert.Equal(imageListBf.ColorDepth, imageListMs.ColorDepth);
System\Windows\Forms\ImageListTests.cs (29)
17Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 35Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 62Assert.Equal(value, list.ColorDepth); 67Assert.Equal(value, list.ColorDepth); 80Assert.Equal(ColorDepth.Depth24Bit, list.ColorDepth); 86Assert.Equal(ColorDepth.Depth24Bit, list.ColorDepth); 92Assert.Equal(ColorDepth.Depth16Bit, list.ColorDepth); 99Assert.Equal(ColorDepth.Depth24Bit, list.ColorDepth); 112Assert.Equal(value, list.ColorDepth); 117Assert.Equal(value, list.ColorDepth); 137Assert.Equal(ColorDepth.Depth24Bit, list.ColorDepth); 144Assert.Equal(ColorDepth.Depth24Bit, list.ColorDepth); 151Assert.Equal(ColorDepth.Depth16Bit, list.ColorDepth); 160Assert.Equal(ColorDepth.Depth24Bit, list.ColorDepth); 169PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.ColorDepth)]; 171Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 175Assert.Equal(ColorDepth.Depth8Bit, list.ColorDepth); 179Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 186PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.ColorDepth)]; 188Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 192Assert.Equal(ColorDepth.Depth8Bit, list.ColorDepth); 196Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 472Assert.Equal(colorDepth, list.ColorDepth); 481Assert.Equal(colorDepth, list.ColorDepth); 509Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 534Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 559Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 583Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 607Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth);