150 references to Black
System.Drawing.Common.Tests (10)
System\Drawing\BrushesTests.cs (1)
17yield return Brush(() => Brushes.Black, Color.Black);
System\Drawing\ColorTranslatorTests.cs (1)
63yield return new object[] { 0, Color.Black };
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (3)
15yield return new object[] { new Point(-4, -6), new Point(1, 2), Color.Black, Color.Wheat, new RectangleF(-4, -6, 5, 8) }; 16yield return new object[] { new Point(4, 6), new Point(-1, -2), Color.Black, Color.Wheat, new RectangleF(-1, -2, 5, 8) }; 17yield return new object[] { new Point(4, 6), new Point(1, 2), Color.Black, Color.Wheat, new RectangleF(1, 2, 3, 4) };
System\Drawing\Drawing2D\PathGradientBrushTests.cs (1)
141Assert.Equal(Color.Black.ToArgb(), brush.CenterColor.ToArgb());
System\Drawing\Imaging\ImageAttributesTests.cs (2)
1297AssertExtensions.Throws<ArgumentException>(null, () => imageAttr.SetWrapMode(WrapMode.Clamp, Color.Black)); 1298AssertExtensions.Throws<ArgumentException>(null, () => imageAttr.SetWrapMode(WrapMode.Clamp, Color.Black, true));
System\Drawing\PensTests.cs (1)
19yield return Pen(() => Pens.Black, Color.Black);
System\Drawing\PenTests.cs (1)
290AssertExtensions.Throws<ArgumentException>(null, () => pen.Color = Color.Black);
System.Private.Windows.Core.TestUtilities (1)
CommonTestHelper.cs (1)
64Color.Black
System.Windows.Forms (18)
System\Windows\Forms\ComponentModel\COM2Interop\COM2ColorConverter.cs (1)
30managedValue ??= Color.Black;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
1031(Color OldColor, Color NewColor) map = new(Color.Black, foreColor);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (4)
37leftColor: Color.Black, leftWidth: 1, leftStyle: ButtonBorderStyle.Dashed, 38topColor: Color.Black, topWidth: 1, topStyle: ButtonBorderStyle.Dashed, 39rightColor: Color.Black, rightWidth: 1, rightStyle: ButtonBorderStyle.Dashed, 40bottomColor: Color.Black, bottomWidth: 1, bottomStyle: ButtonBorderStyle.Dashed);
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (3)
382return SystemColors.Control.ToArgb() == Color.Black.ToArgb(); 499new(Color.Black, Color.White), 500new(Color.White, Color.Black),
System\Windows\Forms\Dialogs\CommonDialogs\ColorDialog.cs (4)
63set => _color = !value.IsEmpty ? value : Color.Black; 152_color = Color.Black; 156private void ResetColor() => Color = Color.Black; 210private bool ShouldSerializeColor() => !Color.Equals(Color.Black);
System\Windows\Forms\Rendering\ControlPaint.cs (5)
1462new(Color.Black, foreColor), 1531Color foreColor = (s_gridInvert) ? Color.White : Color.Black; 1798graphicsColor = Color.Black; 2158color2 = Color.Black; 2165color2 = Color.Black;
System.Windows.Forms.Design (11)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
131(Color OldColor, Color NewColor) map = new(Color.Black, SystemColors.WindowText);
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
434graphicsColor = Color.Black;
System\Windows\Forms\Design\SplitterDesigner.cs (1)
31Color penColor = control.BackColor.GetBrightness() < .5 ? Color.White : Color.Black;
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
184Color waterMarkTextColor = Color.Black;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
926using Pen p = new(new SolidBrush(Color.Black));
System\Windows\Forms\Design\ToolStripTemplateNode.cs (6)
1815DrawArrow(new ToolStripArrowRenderEventArgs(g, null, bounds, SystemInformation.HighContrast ? Color.Black : SystemColors.ControlText, ArrowDirection.Down)); 1910borderPen.Color = Color.Black; 1930borderPen.Color = Color.Black; 1939borderPen.Color = Color.Black; 1949borderPen.Color = Color.Black; 2047e.TextColor = Color.Black;
System.Windows.Forms.Tests (108)
SerializableTypesTests.cs (4)
166BackColor = Color.Black, 188Assert.Equal(Color.Black, result.BackColor); 214backColor: Color.Black, 238Assert.Equal(Color.Black, result.BackColor);
System\Windows\Forms\ButtonRenderingTests.cs (1)
243State.PenColor(Color.Black),
System\Windows\Forms\ClipboardTests.cs (2)
489Clipboard.SetData(format, Color.Black); 492Clipboard.GetData(format).Should().Be(Color.Black);
System\Windows\Forms\ColorDialogTests.cs (5)
18Assert.Equal(Color.Black, dialog.Color); 107yield return new object[] { Color.Empty, Color.Black }; 155Assert.Equal(Color.Black, dialog.Color); 171Assert.Equal(Color.Black, dialog.Color); 339Assert.Equal(Color.Black, dialog.Color);
System\Windows\Forms\ComboBoxTests.cs (4)
1050yield return new object[] { Color.Black, Color.Black }; 1076yield return new object[] { Color.Black, Color.Black, 1 };
System\Windows\Forms\ControlPaintTests.cs (17)
267yield return new object[] { Color.Black, Color.FromArgb(255, 255, 255, 255) }; 548yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Black, style }; 1191yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Black, Color.Blue }; 1195yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Red, Color.Black }; 1267yield return new object[] { new Rectangle(1, 2, 3, 4), new Size(1, 1), Color.Black }; 1311yield return new object[] { new Bitmap(10, 10), 0, 0, Color.Black }; 1319yield return new object[] { new Metafile("bitmaps/telescope_01.wmf"), 0, 0, Color.Black }; 1414yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Black, Color.Blue }; 1418yield return new object[] { new Rectangle(1, 2, 3, 4), glyph, Color.Red, Color.Black }; 1686yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Black, style }; 1715yield return new object[] { new Point(1, 2), new Point(2, 3), Color.Black }; 1823yield return new object[] { active, new Rectangle(0, 1, 4, 5), new Rectangle(1, 2, 3, 4), Color.Black }; 1856yield return new object[] { Color.Black, new Rectangle(1, 2, 3, 4) }; 1904yield return new object[] { s, SystemFonts.MenuFont, Color.Black, new RectangleF(1, 2, 3, 4), new StringFormat() }; 1952yield return new object[] { s, SystemFonts.MenuFont, Color.Black, new Rectangle(1, 2, 3, 4), TextFormatFlags.VerticalCenter }; 2014yield return new object[] { new Rectangle(1, 2, 3, 4), Color.Black }; 2035yield return new object[] { Color.Black, true };
System\Windows\Forms\ControlTests.Methods.cs (2)
6386control.BackColor = Color.Black; 6464control.ForeColor = Color.Black;
System\Windows\Forms\FontDialogTests.cs (5)
20Assert.Equal(Color.Black, dialog.Color); 164yield return new object[] { Color.Empty, Color.Black }; 165yield return new object[] { Color.Black, Color.Black }; 609Assert.Equal(Color.Black, dialog.Color);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (6)
240foreach (Color transparentColor in new Color[] { Color.Transparent, Color.FromArgb(0x12, 0x34, 0x56, 0x78), Color.Empty, Color.Black }) 420foreach (Color transparentColor in new Color[] { Color.Transparent, Color.FromArgb(0x12, 0x34, 0x56, 0x78), Color.Empty, Color.Black }) 575foreach (Color listTransparentColor in new Color[] { Color.Transparent, Color.FromArgb(0x12, 0x34, 0x56, 0x78), Color.Empty, Color.Black }) 577foreach (Color transparentColor in new Color[] { Color.Transparent, Color.FromArgb(0x12, 0x34, 0x56, 0x78), Color.Empty, Color.Black }) 644foreach (Color transparentColor in new Color[] { Color.Transparent, Color.FromArgb(0x12, 0x34, 0x56, 0x78), Color.Empty, Color.Black }) 889foreach (Color transparentColor in new Color[] { Color.Transparent, Color.FromArgb(0x12, 0x34, 0x56, 0x78), Color.Empty, Color.Black })
System\Windows\Forms\ListBoxTests.cs (6)
1243yield return new object[] { Color.Black, Color.Black }; 1269yield return new object[] { Color.Black, Color.Black, 1 }; 5981control.BackColor = Color.Black; 6000control.ForeColor = Color.Black;
System\Windows\Forms\ListViewItemTests.cs (2)
906yield return new object[] { Color.Black, Color.Black };
System\Windows\Forms\ListViewSubItemCollectionTests.cs (2)
904listViewItem.SubItems.Add("Test", Color.White, Color.Black, SystemFonts.MenuFont); 941listViewItem.SubItems.AddRange(["Test 1", "Test 2"], Color.White, Color.Black, SystemFonts.MenuFont);
System\Windows\Forms\ListViewSubItemTests.cs (2)
386yield return new object[] { Color.Black, Color.Black };
System\Windows\Forms\ListViewTests.cs (4)
1311yield return new object[] { Color.Black, Color.Black }; 1337yield return new object[] { Color.Black, Color.Black, 1 };
System\Windows\Forms\MonthCalendarTests.cs (4)
924yield return new object[] { Color.Black, Color.Black }; 950yield return new object[] { Color.Black, Color.Black, 1 };
System\Windows\Forms\ProgressBarTests.cs (1)
2566control.ForeColor = Color.Black;
System\Windows\Forms\PropertyGridTests.cs (4)
919control.CommandsActiveLinkColor = Color.Black; 920Assert.Equal(Color.Black, control.CommandsActiveLinkColor); 935control.CommandsActiveLinkColor = Color.Black; 936Assert.Equal(Color.Black, control.CommandsActiveLinkColor);
System\Windows\Forms\RichTextBoxTests.cs (10)
1680yield return new object[] { Color.Black, Color.Black }; 1706yield return new object[] { Color.Black, Color.Black, 1 }; 4477Assert.Equal(Color.Black, control.SelectionColor); 4481Assert.Equal(Color.Black, control.SelectionColor); 4497Assert.Equal(Color.Black, control.SelectionColor); 4504Assert.Equal(Color.Black, control.SelectionColor); 4515yield return new object[] { CFM_MASK.CFM_COLOR, 0, Color.Black }; 4559yield return new object[] { Color.Empty, Color.Black };
System\Windows\Forms\TextRendererTests.cs (12)
23yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Black }; 52yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Black, Color.Blue }; 57yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Black }; 86yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Black, TextFormatFlags.Default, }; 123yield return new object[] { hint, text, SystemFonts.MenuFont, new Point(1, 2), Color.Black, Color.Blue, TextFormatFlags.Default, }; 128yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Black, TextFormatFlags.Default, }; 167yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Black }; 198yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Black, Color.Blue }; 203yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Black }; 234yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Black, TextFormatFlags.Default, }; 274yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Black, Color.Blue, TextFormatFlags.Default, }; 279yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Black, TextFormatFlags.Default, };
System\Windows\Forms\ToolStripControlHostTests.cs (2)
4397item.BackColor = Color.Black; 4430item.ForeColor = Color.Black;
System\Windows\Forms\ToolStripItemTests.cs (4)
3354yield return new object[] { Color.Black, Color.Black, 1 }; 14105item.BackColor = Color.Black; 14168item.ForeColor = Color.Black;
System\Windows\Forms\TreeViewTests.cs (2)
1462yield return new object[] { Color.Black, Color.Black };
System\Windows\Forms\UpDownBaseTests.cs (2)
938yield return new object[] { Color.Black, Color.Black };
TextBoxBaseTests.cs (4)
1164yield return new object[] { Color.Black, Color.Black }; 1190yield return new object[] { Color.Black, Color.Black, 1 };
TrackBarTests.cs (1)
687yield return new object[] { Color.Black };
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
29{ Color.Black, Color.Black },