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