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