159 instantiations of SolidBrush
PresentationUI (2)
MS\Internal\Documents\DialogDivider.cs (1)
80
new Pen(new
SolidBrush
(System.Drawing.SystemColors.ControlDark)),
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
1011
SolidBrush cellBackground = new
SolidBrush
(
System.Drawing.Common.Tests (120)
mono\System.Drawing\GraphicsTests.cs (2)
871
using SolidBrush brush =
new
(Color.Red);
886
using SolidBrush brush =
new
(Color.Red);
System\Drawing\BufferedGraphicsTests.cs (3)
46
using SolidBrush brush =
new
(Color.Red);
66
using SolidBrush brush =
new
(Color.Red);
91
using SolidBrush brush =
new
(Color.Red);
System\Drawing\GraphicsTests.Core.cs (5)
139
SolidBrush brush =
new
(Color.Red);
152
using SolidBrush brush =
new
(Color.Red);
163
using SolidBrush brush =
new
(Color.Red);
174
using SolidBrush brush =
new
(Color.Red);
191
using SolidBrush brush =
new
(Color.Red);
System\Drawing\GraphicsTests.cs (12)
311
using SolidBrush transparentBlackBrush =
new
(transparentBlack);
312
using SolidBrush transparentWhiteBrush =
new
(transparentWhite);
403
using SolidBrush transparentBlackBrush =
new
(transparentBlack);
404
using SolidBrush transparentWhiteBrush =
new
(transparentWhite);
1069
using SolidBrush brush =
new
(red);
1557
using SolidBrush brush =
new
(color);
2671
SolidBrush brush =
new
(Color.Red);
2684
using SolidBrush brush =
new
(Color.Red);
2695
using SolidBrush brush =
new
(Color.Red);
2706
using SolidBrush brush =
new
(Color.Red);
2724
using SolidBrush brush =
new
(Color.Red);
2740
using SolidBrush brush =
new
(color);
System\Drawing\Imaging\ImageAttributesTests.cs (9)
93
using SolidBrush brush =
new
(_actualGreen);
126
using SolidBrush brush =
new
(color);
172
using SolidBrush brush =
new
(_actualYellow);
203
using SolidBrush brush =
new
(_actualYellow);
299
using SolidBrush brush =
new
(_actualYellow);
341
using SolidBrush brush =
new
(_actualGreen);
364
using SolidBrush brush =
new
(_actualGreen);
391
using SolidBrush brush =
new
(_actualGreen);
420
using SolidBrush brush =
new
(_actualGreen);
System\Drawing\PenTests.cs (81)
13
yield return new object[] { new
SolidBrush
(Color.Red), PenType.SolidColor };
41
yield return new object[] { new
SolidBrush
(Color.Red), 0, PenType.SolidColor };
48
yield return new object[] { new
SolidBrush
(Color.Red), float.PositiveInfinity, PenType.SolidColor };
49
yield return new object[] { new
SolidBrush
(Color.Red), float.NaN, PenType.SolidColor };
50
yield return new object[] { new
SolidBrush
(Color.Red), float.MaxValue, PenType.SolidColor };
67
using SolidBrush brush =
new
(Color.Red);
84
SolidBrush brush =
new
(Color.Red);
122
using SolidBrush brush =
new
(Color.Red);
133
using SolidBrush brush =
new
(Color.Red);
141
using SolidBrush brush =
new
(Color.Red);
174
using SolidBrush brush =
new
(Color.Red);
182
using SolidBrush brush =
new
(Color.Red);
191
using SolidBrush brush =
new
(Color.Red);
201
using SolidBrush brush =
new
(Color.Red);
227
using SolidBrush brush =
new
(Color.Red);
237
using SolidBrush brush =
new
(Color.Red);
296
using SolidBrush brush =
new
(Color.Red);
310
using SolidBrush brush =
new
(Color.Red);
323
using SolidBrush brush =
new
(Color.Red);
331
using SolidBrush brush =
new
(Color.Red);
347
using SolidBrush brush =
new
(Color.Red);
355
using SolidBrush brush =
new
(Color.Red);
366
using SolidBrush brush =
new
(Color.Red);
383
using SolidBrush brush =
new
(Color.Red);
391
using SolidBrush brush =
new
(Color.Red);
404
using SolidBrush brush =
new
(Color.Red);
418
using SolidBrush brush =
new
(Color.Red);
435
using SolidBrush brush =
new
(Color.Red);
443
using SolidBrush brush =
new
(Color.Red);
456
using SolidBrush brush =
new
(Color.Red);
473
using SolidBrush brush =
new
(Color.Red);
485
using SolidBrush brush =
new
(Color.Red);
493
using SolidBrush brush =
new
(Color.Red);
510
using SolidBrush brush =
new
(Color.Red);
519
using SolidBrush brush =
new
(Color.Red);
534
using SolidBrush brush =
new
(Color.Red);
548
using SolidBrush brush =
new
(Color.Red);
556
using SolidBrush brush =
new
(Color.Red);
568
using SolidBrush brush =
new
(Color.Red);
576
using SolidBrush brush =
new
(Color.Red);
593
using SolidBrush brush =
new
(Color.Red);
611
using SolidBrush brush =
new
(Color.Red);
625
using SolidBrush brush =
new
(Color.Red);
633
using SolidBrush brush =
new
(Color.Red);
660
using SolidBrush brush =
new
(Color.Red);
679
using SolidBrush brush =
new
(Color.Red);
687
using SolidBrush brush =
new
(Color.Red);
702
using SolidBrush brush =
new
(Color.Red);
713
using SolidBrush brush =
new
(Color.Red);
721
using SolidBrush brush =
new
(Color.Red);
738
using SolidBrush brush =
new
(Color.Red);
747
using SolidBrush brush =
new
(Color.Red);
769
using SolidBrush brush =
new
(Color.Red);
795
using SolidBrush brush =
new
(Color.Red);
804
using SolidBrush brush =
new
(Color.Red);
814
using SolidBrush brush =
new
(Color.Red);
833
using SolidBrush brush =
new
(Color.Red);
846
using SolidBrush brush =
new
(Color.Red);
858
using SolidBrush brush =
new
(Color.Red);
873
using SolidBrush brush =
new
(Color.Red);
898
using (SolidBrush brush =
new
(Color.Red))
922
using SolidBrush brush =
new
(Color.Red);
930
using SolidBrush brush =
new
(Color.Red);
958
using (SolidBrush brush =
new
(Color.Red))
982
using SolidBrush brush =
new
(Color.Red);
990
using SolidBrush brush =
new
(Color.Red);
1005
using SolidBrush brush =
new
(Color.Red);
1022
using SolidBrush brush =
new
(Color.Red);
1033
using SolidBrush brush =
new
(Color.Red);
1043
using SolidBrush brush =
new
(Color.Red);
1051
using SolidBrush brush =
new
(Color.Red);
1062
using SolidBrush brush =
new
(Color.Red);
1077
using SolidBrush brush =
new
(Color.Red);
1085
using SolidBrush brush =
new
(Color.Red);
1094
using SolidBrush brush =
new
(Color.Red);
1105
using SolidBrush brush =
new
(Color.Red);
1133
using (SolidBrush brush =
new
(Color.Red))
1157
using SolidBrush brush =
new
(Color.Red);
1165
using SolidBrush brush =
new
(Color.Red);
1183
using SolidBrush brush =
new
(Color.Red);
1192
using SolidBrush brush =
new
(Color.Red);
System\Drawing\SolidBrushTests.cs (8)
18
SolidBrush brush =
new
(color);
25
SolidBrush brush =
new
(Color.PeachPuff);
53
SolidBrush brush =
new
(Color.LavenderBlush);
62
SolidBrush brush =
new
(default(Color));
71
SolidBrush brush =
new
(Color.Aquamarine);
80
SolidBrush brush =
new
(Color.Goldenrod) { Color = Color.GhostWhite };
87
SolidBrush brush =
new
(default(Color));
103
SolidBrush brush =
new
(Color.Plum);
System.Windows.Forms.Design (32)
System\ComponentModel\Design\ByteViewer.cs (4)
130
using SolidBrush foreground =
new
(ForeColor);
140
using (Brush brush = new
SolidBrush
(SystemColors.ControlLightLight))
195
using Brush foreground = new
SolidBrush
(ForeColor);
223
using Brush foreground = new
SolidBrush
(ForeColor);
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
588
g.FillRectangle(new
SolidBrush
(backColor), res);
614
using (Brush textBrush = new
SolidBrush
(textColor))
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
101
using SolidBrush b =
new
(backColor);
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
396
_watermarkBrush = new
SolidBrush
(c);
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
277
Brush foreBrush = new
SolidBrush
(die.ForeColor);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
1030
using SolidBrush brush =
new
(primaryControl.BackColor);
System\Windows\Forms\Design\Behavior\MiniLockedBorderGlyph.cs (1)
53
pe.Graphics.FillRectangle(new
SolidBrush
(SystemColors.ControlText), bounds);
System\Windows\Forms\Design\ComponentTray.cs (1)
2280
Brush foreBrush = new
SolidBrush
(ForeColor);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2294
e.Graphics.DrawString(exceptionText, errorFont, new
SolidBrush
(Control.ForeColor), textRect, stringFormat);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (3)
997
Brush selectedBrush = new
SolidBrush
(e.BackColor);
998
Brush foreBrush = new
SolidBrush
(e.ForeColor);
999
Brush backBrush = new
SolidBrush
(_selectedColumns.BackColor);
System\Windows\Forms\Design\DesignerUtils.cs (4)
22
private static SolidBrush s_hoverBrush =
new
(Color.FromArgb(alpha: 50, SystemColors.Highlight));
122
g.FillRectangle(new
SolidBrush
(SystemColors.InactiveBorder), 0, 0, s_boxImageSize, s_boxImageSize);
167
s_hoverBrush = new
SolidBrush
(Color.FromArgb(50, SystemColors.Highlight));
237
_ => new
SolidBrush
(color),
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
145
Brush brush = new
SolidBrush
(borderColor);
System\Windows\Forms\Design\TabOrder.cs (3)
57
_highlightTextBrush = new
SolidBrush
(SystemColors.HighlightText);
218
using (SolidBrush brush =
new
(backColor))
288
Brush foreBrush = new
SolidBrush
(textColor);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
926
using Pen p = new(new
SolidBrush
(Color.Black));
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
473
using Brush brush = new
SolidBrush
(Color.FromArgb(50, Color.White));
System\Windows\Forms\Design\ToolStripTemplateNode.cs (6)
1834
using (SolidBrush b =
new
(_dropDownMouseOverColor))
1841
using (SolidBrush b =
new
(_dropDownMouseDownColor))
1891
using (SolidBrush brush =
new
(_toolStripBorderColor))
1989
using (SolidBrush brush =
new
(_dropDownMouseDownColor))
1998
using (SolidBrush brush =
new
(_dropDownMouseOverColor))
2008
using (SolidBrush brush =
new
(_dropDownMouseOverColor))
System.Windows.Forms.Primitives (3)
System\Windows\Forms\GdiPlus\SolidBrushCache.cs (1)
19
=> _brush = new
SolidBrush
(color);
System\Windows\Forms\SystemDrawingExtensions.cs (2)
121
? new
SolidBrush
(Color.FromArgb(color.ToArgb()))
122
: new
SolidBrush
(color);
System.Windows.Forms.Tests (1)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
496
using SolidBrush brush =
new
(e.ForeColor);
WinFormsControlsTest (1)
ComboBoxesWithScrollBars.cs (1)
137
using SolidBrush brush =
new
(e.ForeColor);
172 references to SolidBrush
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
1011
SolidBrush
cellBackground = new SolidBrush(
System.Drawing (1)
System.Drawing.cs (1)
147
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
SolidBrush
))]
System.Drawing.Common.Tests (138)
mono\System.Drawing\GraphicsTests.cs (2)
871
using
SolidBrush
brush = new(Color.Red);
886
using
SolidBrush
brush = new(Color.Red);
System\Drawing\BrushesTests.cs (2)
159
SolidBrush
brush = Assert.IsType<
SolidBrush
>(getBrush());
System\Drawing\BufferedGraphicsTests.cs (3)
46
using
SolidBrush
brush = new(Color.Red);
66
using
SolidBrush
brush = new(Color.Red);
91
using
SolidBrush
brush = new(Color.Red);
System\Drawing\Drawing2D\HatchBrushTests.cs (4)
71
SolidBrush
brush = Assert.IsType<
SolidBrush
>(Brushes.Bisque);
72
SolidBrush
clone = Assert.IsType<
SolidBrush
>(brush.Clone());
System\Drawing\GraphicsTests.Core.cs (5)
139
SolidBrush
brush = new(Color.Red);
152
using
SolidBrush
brush = new(Color.Red);
163
using
SolidBrush
brush = new(Color.Red);
174
using
SolidBrush
brush = new(Color.Red);
191
using
SolidBrush
brush = new(Color.Red);
System\Drawing\GraphicsTests.cs (12)
311
using
SolidBrush
transparentBlackBrush = new(transparentBlack);
312
using
SolidBrush
transparentWhiteBrush = new(transparentWhite);
403
using
SolidBrush
transparentBlackBrush = new(transparentBlack);
404
using
SolidBrush
transparentWhiteBrush = new(transparentWhite);
1069
using
SolidBrush
brush = new(red);
1557
using
SolidBrush
brush = new(color);
2671
SolidBrush
brush = new(Color.Red);
2684
using
SolidBrush
brush = new(Color.Red);
2695
using
SolidBrush
brush = new(Color.Red);
2706
using
SolidBrush
brush = new(Color.Red);
2724
using
SolidBrush
brush = new(Color.Red);
2740
using
SolidBrush
brush = new(color);
System\Drawing\Imaging\ImageAttributesTests.cs (9)
93
using
SolidBrush
brush = new(_actualGreen);
126
using
SolidBrush
brush = new(color);
172
using
SolidBrush
brush = new(_actualYellow);
203
using
SolidBrush
brush = new(_actualYellow);
299
using
SolidBrush
brush = new(_actualYellow);
341
using
SolidBrush
brush = new(_actualGreen);
364
using
SolidBrush
brush = new(_actualGreen);
391
using
SolidBrush
brush = new(_actualGreen);
420
using
SolidBrush
brush = new(_actualGreen);
System\Drawing\PenTests.cs (81)
67
using
SolidBrush
brush = new(Color.Red);
71
Assert.Equal(pen.Color, Assert.IsType<
SolidBrush
>(pen.Brush).Color);
84
SolidBrush
brush = new(Color.Red);
95
VerifyPen<
SolidBrush
>(pen, PenType.SolidColor, 1);
110
VerifyPen<
SolidBrush
>(pen, PenType.SolidColor, width);
122
using
SolidBrush
brush = new(Color.Red);
133
using
SolidBrush
brush = new(Color.Red);
141
using
SolidBrush
brush = new(Color.Red);
174
using
SolidBrush
brush = new(Color.Red);
182
using
SolidBrush
brush = new(Color.Red);
191
using
SolidBrush
brush = new(Color.Red);
201
using
SolidBrush
brush = new(Color.Red);
215
Assert.Equal(((
SolidBrush
)pen.Brush).Color, ((
SolidBrush
)clone.Brush).Color);
227
using
SolidBrush
brush = new(Color.Red);
237
using
SolidBrush
brush = new(Color.Red);
296
using
SolidBrush
brush = new(Color.Red);
310
using
SolidBrush
brush = new(Color.Red);
323
using
SolidBrush
brush = new(Color.Red);
331
using
SolidBrush
brush = new(Color.Red);
347
using
SolidBrush
brush = new(Color.Red);
355
using
SolidBrush
brush = new(Color.Red);
366
using
SolidBrush
brush = new(Color.Red);
383
using
SolidBrush
brush = new(Color.Red);
391
using
SolidBrush
brush = new(Color.Red);
404
using
SolidBrush
brush = new(Color.Red);
418
using
SolidBrush
brush = new(Color.Red);
435
using
SolidBrush
brush = new(Color.Red);
443
using
SolidBrush
brush = new(Color.Red);
456
using
SolidBrush
brush = new(Color.Red);
473
using
SolidBrush
brush = new(Color.Red);
485
using
SolidBrush
brush = new(Color.Red);
493
using
SolidBrush
brush = new(Color.Red);
510
using
SolidBrush
brush = new(Color.Red);
519
using
SolidBrush
brush = new(Color.Red);
534
using
SolidBrush
brush = new(Color.Red);
548
using
SolidBrush
brush = new(Color.Red);
556
using
SolidBrush
brush = new(Color.Red);
568
using
SolidBrush
brush = new(Color.Red);
576
using
SolidBrush
brush = new(Color.Red);
593
using
SolidBrush
brush = new(Color.Red);
611
using
SolidBrush
brush = new(Color.Red);
625
using
SolidBrush
brush = new(Color.Red);
633
using
SolidBrush
brush = new(Color.Red);
660
using
SolidBrush
brush = new(Color.Red);
679
using
SolidBrush
brush = new(Color.Red);
687
using
SolidBrush
brush = new(Color.Red);
702
using
SolidBrush
brush = new(Color.Red);
713
using
SolidBrush
brush = new(Color.Red);
721
using
SolidBrush
brush = new(Color.Red);
738
using
SolidBrush
brush = new(Color.Red);
747
using
SolidBrush
brush = new(Color.Red);
769
using
SolidBrush
brush = new(Color.Red);
795
using
SolidBrush
brush = new(Color.Red);
804
using
SolidBrush
brush = new(Color.Red);
814
using
SolidBrush
brush = new(Color.Red);
833
using
SolidBrush
brush = new(Color.Red);
846
using
SolidBrush
brush = new(Color.Red);
858
using
SolidBrush
brush = new(Color.Red);
873
using
SolidBrush
brush = new(Color.Red);
898
using (
SolidBrush
brush = new(Color.Red))
922
using
SolidBrush
brush = new(Color.Red);
930
using
SolidBrush
brush = new(Color.Red);
958
using (
SolidBrush
brush = new(Color.Red))
982
using
SolidBrush
brush = new(Color.Red);
990
using
SolidBrush
brush = new(Color.Red);
1005
using
SolidBrush
brush = new(Color.Red);
1022
using
SolidBrush
brush = new(Color.Red);
1033
using
SolidBrush
brush = new(Color.Red);
1043
using
SolidBrush
brush = new(Color.Red);
1051
using
SolidBrush
brush = new(Color.Red);
1062
using
SolidBrush
brush = new(Color.Red);
1077
using
SolidBrush
brush = new(Color.Red);
1085
using
SolidBrush
brush = new(Color.Red);
1094
using
SolidBrush
brush = new(Color.Red);
1105
using
SolidBrush
brush = new(Color.Red);
1133
using (
SolidBrush
brush = new(Color.Red))
1157
using
SolidBrush
brush = new(Color.Red);
1165
using
SolidBrush
brush = new(Color.Red);
1183
using
SolidBrush
brush = new(Color.Red);
1192
using
SolidBrush
brush = new(Color.Red);
System\Drawing\SolidBrushTests.cs (18)
18
SolidBrush
brush = new(color);
25
SolidBrush
brush = new(Color.PeachPuff);
26
SolidBrush
clone = Assert.IsType<
SolidBrush
>(brush.Clone());
42
SolidBrush
brush = Assert.IsType<
SolidBrush
>(Brushes.Bisque);
43
SolidBrush
clone = Assert.IsType<
SolidBrush
>(brush.Clone());
53
SolidBrush
brush = new(Color.LavenderBlush);
62
SolidBrush
brush = new(default(Color));
71
SolidBrush
brush = new(Color.Aquamarine);
80
SolidBrush
brush = new(Color.Goldenrod) { Color = Color.GhostWhite };
87
SolidBrush
brush = new(default(Color));
96
SolidBrush
brush = Assert.IsType<
SolidBrush
>(SystemBrushes.ActiveBorder);
103
SolidBrush
brush = new(Color.Plum);
111
SolidBrush
brush = Assert.IsType<
SolidBrush
>(SystemBrushes.ActiveBorder);
System\Drawing\SystemBrushesTests.cs (2)
51
SolidBrush
brush = Assert.IsType<
SolidBrush
>(getBrush());
System.Windows.Forms (10)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (8)
2078
private static
SolidBrush
DefaultForeBrush => (
SolidBrush
)SystemBrushes.WindowText;
2082
private static
SolidBrush
DefaultHeadersBackBrush => (
SolidBrush
)SystemBrushes.Control;
2106
private static
SolidBrush
DefaultSelectionBackBrush => (
SolidBrush
)SystemBrushes.Highlight;
2108
private static
SolidBrush
DefaultSelectionForeBrush => (
SolidBrush
)SystemBrushes.HighlightText;
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
1225
SolidBrush
foreBrush,
1226
SolidBrush
linkBrush,
System.Windows.Forms.Design (12)
System\ComponentModel\Design\ByteViewer.cs (1)
130
using
SolidBrush
foreground = new(ForeColor);
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
101
using
SolidBrush
b = new(backColor);
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
20
private
SolidBrush
? _watermarkBrush;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
1030
using
SolidBrush
brush = new(primaryControl.BackColor);
System\Windows\Forms\Design\DesignerUtils.cs (1)
22
private static
SolidBrush
s_hoverBrush = new(Color.FromArgb(alpha: 50, SystemColors.Highlight));
System\Windows\Forms\Design\TabOrder.cs (1)
218
using (
SolidBrush
brush = new(backColor))
System\Windows\Forms\Design\ToolStripTemplateNode.cs (6)
1834
using (
SolidBrush
b = new(_dropDownMouseOverColor))
1841
using (
SolidBrush
b = new(_dropDownMouseDownColor))
1891
using (
SolidBrush
brush = new(_toolStripBorderColor))
1989
using (
SolidBrush
brush = new(_dropDownMouseDownColor))
1998
using (
SolidBrush
brush = new(_dropDownMouseOverColor))
2008
using (
SolidBrush
brush = new(_dropDownMouseOverColor))
System.Windows.Forms.Primitives (8)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (3)
48
SolidBrush
? solidBrush = color.IsSystemColor
49
? (
SolidBrush
?)SystemBrushes.FromSystemColor(color)
50
: (
SolidBrush
?)BrushFromKnownColor(color.ToKnownColor());
System\Windows\Forms\GdiPlus\SolidBrushCache.cs (3)
8
internal sealed class SolidBrushCache : RefCountedCache<
SolidBrush
, Color, Color>
17
private readonly
SolidBrush
_brush;
20
public override
SolidBrush
Object => _brush;
System\Windows\Forms\SystemDrawingExtensions.cs (2)
116
/// Creates a <see cref="
SolidBrush
"/>. If <paramref name="color"/> is a system color, makes a static copy of
119
internal static
SolidBrush
CreateStaticBrush(this Color color)
System.Windows.Forms.Tests (1)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
496
using
SolidBrush
brush = new(e.ForeColor);
WinFormsControlsTest (1)
ComboBoxesWithScrollBars.cs (1)
137
using
SolidBrush
brush = new(e.ForeColor);