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