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