83 references to ColorDepth
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.cs (1)
509images.ColorDepth = ColorDepth.Depth32Bit;
System.Windows.Forms (15)
System\Windows\Forms\Controls\ImageList\ImageList.cs (15)
35private ColorDepth _colorDepth = ColorDepth.Depth32Bit; 79public ColorDepth ColorDepth 98private void ResetColorDepth() => ColorDepth = ColorDepth.Depth32Bit; 2264 => ColorDepth.Depth4Bit, 2278 => ColorDepth.Depth8Bit, 22816 => ColorDepth.Depth16Bit, 22924 => ColorDepth.Depth24Bit, 23032 => ColorDepth.Depth32Bit, 406case ColorDepth.Depth4Bit: 409case ColorDepth.Depth8Bit: 412case ColorDepth.Depth16Bit: 415case ColorDepth.Depth24Bit: 418case ColorDepth.Depth32Bit: 614if (ColorDepth == ColorDepth.Depth32Bit)
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
1912ColorDepth = ColorDepth.Depth24Bit 1924ColorDepth = ColorDepth.Depth24Bit 1942ColorDepth = ColorDepth.Depth24Bit,
System\Windows\Forms\Design\ImageListActionList.cs (1)
22public ColorDepth ColorDepth
System\Windows\Forms\Design\ImageListDesigner.cs (1)
25private ColorDepth ColorDepth
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\ImageListActionListTests.cs (3)
39_actionList.ColorDepth.Should().Be(ColorDepth.Depth32Bit); 45_actionList.ColorDepth = ColorDepth.Depth16Bit; 46_actionList.ColorDepth.Should().Be(ColorDepth.Depth16Bit);
System.Windows.Forms.Tests (56)
System\Windows\Forms\ImageList.ImageCollectionTests.cs (5)
45[EnumData<ColorDepth>] 46public void ImageCollection_Item_GetInt_InvokeWithoutHandle_ReturnsExpected(ColorDepth depth) 93[EnumData<ColorDepth>] 94public void ImageCollection_Item_GetInt_InvokeWithHandle_ReturnsExpected(ColorDepth depth) 199ColorDepth = ColorDepth.Depth32Bit
System\Windows\Forms\ImageListTests.cs (51)
19Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 37Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 57[EnumData<ColorDepth>] 58public void ImageList_ColorDepth_SetWithoutHandle_GetReturnsExpected(ColorDepth value) 81list.ColorDepth = ColorDepth.Depth24Bit; 82Assert.Equal(ColorDepth.Depth24Bit, list.ColorDepth); 87list.ColorDepth = ColorDepth.Depth24Bit; 88Assert.Equal(ColorDepth.Depth24Bit, list.ColorDepth); 93list.ColorDepth = ColorDepth.Depth16Bit; 94Assert.Equal(ColorDepth.Depth16Bit, list.ColorDepth); 100list.ColorDepth = ColorDepth.Depth24Bit; 101Assert.Equal(ColorDepth.Depth24Bit, list.ColorDepth); 107[EnumData<ColorDepth>] 108public void ImageList_ColorDepth_SetWithHandle_GetReturnsExpected(ColorDepth value) 138list.ColorDepth = ColorDepth.Depth24Bit; 139Assert.Equal(ColorDepth.Depth24Bit, list.ColorDepth); 145list.ColorDepth = ColorDepth.Depth24Bit; 146Assert.Equal(ColorDepth.Depth24Bit, list.ColorDepth); 152list.ColorDepth = ColorDepth.Depth16Bit; 153Assert.Equal(ColorDepth.Depth16Bit, list.ColorDepth); 161list.ColorDepth = ColorDepth.Depth24Bit; 162Assert.Equal(ColorDepth.Depth24Bit, list.ColorDepth); 173Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 176list.ColorDepth = ColorDepth.Depth8Bit; 177Assert.Equal(ColorDepth.Depth8Bit, list.ColorDepth); 181Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 190Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 193list.ColorDepth = ColorDepth.Depth8Bit; 194Assert.Equal(ColorDepth.Depth8Bit, list.ColorDepth); 198Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 207[EnumData<ColorDepth>] 208public void ImageList_Handle_Get_CreatesHandle(ColorDepth colorDepth) 221[InvalidEnumData<ColorDepth>] 222public void ImageList_ColorDepth_SetInvalid_ThrowsInvalidEnumArgumentException(ColorDepth value) 455[EnumData<ColorDepth>] 456public void ImageList_ImageStream_SetStreamerSerialized_UpdatesImages(ColorDepth colorDepth) 492[EnumData<ColorDepth>] 493public void ImageList_ImageStream_SetStreamerSerializedDisposed_Nop(ColorDepth colorDepth) 511Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 519[EnumData<ColorDepth>] 520public void ImageList_ImageStream_SetStreamerHasHandleNotSerialized_UpdatesImages(ColorDepth colorDepth) 536Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 544[EnumData<ColorDepth>] 545public void ImageList_ImageStream_SetWithHandleStreamerHasHandleNotSerialized_Nop(ColorDepth colorDepth) 561Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 569[EnumData<ColorDepth>] 570public void ImageList_ImageStream_SetStreamerHasNoHandleNotSerialized_Nop(ColorDepth colorDepth) 585Assert.Equal(ColorDepth.Depth32Bit, list.ColorDepth); 593[EnumData<ColorDepth>] 594public void ImageList_ImageStream_SetWithHandleStreamerHasNoHandleNotSerialized_Nop(ColorDepth colorDepth) 609Assert.Equal(ColorDepth.Depth32Bit, list.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;