44 writes to TransparentColor
System.Windows.Forms (1)
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
747private void ResetTransparentColor() => TransparentColor = Color.LightGray;
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
1912TransparentColor = Color.Magenta, 1924TransparentColor = Color.Magenta, 1942TransparentColor = Color.Magenta,
System\Windows\Forms\Design\ImageListDesigner.cs (1)
76ImageList.TransparentColor = value;
System.Windows.Forms.Tests (34)
SerializableTypesTests.cs (1)
78TransparentColor = Color.White
System\Windows\Forms\ImageList.ImageCollectionTests.cs (18)
262TransparentColor = transparentColor 283TransparentColor = transparentColor 441TransparentColor = transparentColor 485TransparentColor = transparentColor 530TransparentColor = transparentColor 554TransparentColor = transparentColor 599TransparentColor = listTransparentColor 623TransparentColor = listTransparentColor 656TransparentColor = transparentColor 700TransparentColor = transparentColor 745TransparentColor = transparentColor 769TransparentColor = transparentColor 818TransparentColor = transparentColor 842TransparentColor = transparentColor 907TransparentColor = transparentColor 924TransparentColor = transparentColor 1635TransparentColor = transparentColor 1656TransparentColor = transparentColor
System\Windows\Forms\ImageListTests.cs (14)
681TransparentColor = value 687list.TransparentColor = value; 700list.TransparentColor = Color.Red; 706list.TransparentColor = Color.Red; 712list.TransparentColor = Color.Blue; 719list.TransparentColor = Color.Red; 732list.TransparentColor = value; 737list.TransparentColor = value; 751list.TransparentColor = Color.Red; 757list.TransparentColor = Color.Red; 763list.TransparentColor = Color.Blue; 770list.TransparentColor = Color.Red; 784list.TransparentColor = Color.Red; 801list.TransparentColor = Color.Red;
System\Windows\Forms\ListViewTests.cs (1)
5053imagecollection.TransparentColor = Color.Transparent;
TrimTestBinaryDeserialization (1)
Form1.Designer.cs (1)
42imageList1.TransparentColor = Color.Transparent;
WinFormsControlsTest (4)
ListViewTest.Designer.cs (3)
52this.imageList1.TransparentColor = System.Drawing.Color.Transparent; 103this.imageList2.TransparentColor = System.Drawing.Color.Transparent; 131this.LargeImageList.TransparentColor = System.Drawing.Color.Transparent;
TreeViewTest.Designer.cs (1)
56this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
27 references to TransparentColor
System.Windows.Forms (4)
System\Windows\Forms\Controls\ImageList\ImageList.cs (3)
262private bool UseTransparentColor => TransparentColor.A > 0; 281Color transparent = TransparentColor; 749private bool ShouldSerializeTransparentColor() => !TransparentColor.Equals(Color.LightGray);
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (1)
152bitmap.MakeTransparent(_owner.TransparentColor);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ImageListDesigner.cs (1)
72get => ImageList.TransparentColor;
System.Windows.Forms.Tests (22)
System\Windows\Forms\ImageListTests.cs (22)
25Assert.Equal(Color.Transparent, list.TransparentColor); 43Assert.Equal(Color.Transparent, list.TransparentColor); 683Assert.Equal(value, list.TransparentColor); 688Assert.Equal(value, list.TransparentColor); 701Assert.Equal(Color.Red, list.TransparentColor); 707Assert.Equal(Color.Red, list.TransparentColor); 713Assert.Equal(Color.Blue, list.TransparentColor); 720Assert.Equal(Color.Red, list.TransparentColor); 733Assert.Equal(value, list.TransparentColor); 738Assert.Equal(value, list.TransparentColor); 752Assert.Equal(Color.Red, list.TransparentColor); 758Assert.Equal(Color.Red, list.TransparentColor); 764Assert.Equal(Color.Blue, list.TransparentColor); 771Assert.Equal(Color.Red, list.TransparentColor); 779PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.TransparentColor)]; 781Assert.Equal(Color.Transparent, list.TransparentColor); 785Assert.Equal(Color.Red, list.TransparentColor); 789Assert.Equal(Color.LightGray, list.TransparentColor); 796PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ImageList))[nameof(ImageList.TransparentColor)]; 798Assert.Equal(Color.Transparent, list.TransparentColor); 802Assert.Equal(Color.Red, list.TransparentColor); 806Assert.Equal(Color.LightGray, list.TransparentColor);