11 writes to Color
System.Windows.Forms (1)
System\Windows\Forms\Dialogs\CommonDialogs\ColorDialog.cs (1)
155private void ResetColor() => Color = Color.Black;
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (2)
114Color = Color.Empty; 130Color = Color.FromArgb(red, green, blue);
System.Windows.Forms.Tests (8)
System\Windows\Forms\ColorDialogTests.cs (8)
117Color = value 122dialog.Color = value; 132Color = Color.Blue 135dialog.Color = value; 139dialog.Color = value; 150dialog.Color = Color.Red; 166dialog.Color = Color.Red; 327Color = Color.Red,
18 references to Color
System.Windows.Forms (4)
System\Windows\Forms\Dialogs\CommonDialogs\ColorDialog.cs (4)
14[DefaultProperty(nameof(Color))] 207/// Indicates whether the <see cref="Color"/> property should be persisted. 209private bool ShouldSerializeColor() => !Color.Equals(Color.Black); 211public override string ToString() => $"{base.ToString()}, Color: {Color}";
System.Windows.Forms.Design (1)
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
248CustomColors[customIndex] = dialog.Color;
System.Windows.Forms.Tests (13)
System\Windows\Forms\ColorDialogTests.cs (13)
18Assert.Equal(Color.Black, dialog.Color); 42Assert.Equal(Color.Empty, dialog.Color); 119Assert.Equal(expected, dialog.Color); 123Assert.Equal(expected, dialog.Color); 136Assert.Equal(expected, dialog.Color); 140Assert.Equal(expected, dialog.Color); 146PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColorDialog))[nameof(ColorDialog.Color)]; 151Assert.Equal(Color.Red, dialog.Color); 155Assert.Equal(Color.Black, dialog.Color); 162PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ColorDialog))[nameof(ColorDialog.Color)]; 167Assert.Equal(Color.Red, dialog.Color); 171Assert.Equal(Color.Black, dialog.Color); 339Assert.Equal(Color.Black, dialog.Color);