195 references to Brushes
Accessibility_Core_App (1)
PrintingControls.cs (1)
23Brush brush = Brushes.Blue;
BinaryFormatTests (1)
FormatTests\FormattedObject\BinaryFormatWriterTests.cs (1)
161BinaryFormatWriter.TryWriteDrawingPrimitivesObject(stream, Brushes.AliceBlue).Should().BeFalse();
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
52new System.Drawing.Pen(System.Drawing.Brushes.DeepSkyBlue, 1),
System.Drawing (1)
System.Drawing.cs (1)
8[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Brushes))]
System.Drawing.Common.Tests (164)
mono\System.Drawing\GraphicsTests.cs (13)
1151Assert.Throws<ArgumentNullException>(() => g.FillRectangles(Brushes.Red, (Rectangle[])null)); 1159Assert.Throws<ArgumentException>(() => g.FillRectangles(Brushes.Red, Array.Empty<Rectangle>())); 1175Assert.Throws<ArgumentNullException>(() => g.FillRectangles(Brushes.Red, (RectangleF[])null)); 1183Assert.Throws<ArgumentException>(() => g.FillRectangles(Brushes.Red, Array.Empty<RectangleF>())); 1195g.FillRectangle(Brushes.Red, rect); 1215g.FillRectangle(Brushes.Green, rect); 1389g.FillRectangle(Brushes.Green, rect); 2093g.DrawString("Test String", _font, Brushes.Black, rect, fmt); 2094g.DrawString("Test String".AsSpan(), _font, Brushes.Black, rect, fmt); 2109g.DrawString("Test String", _font, Brushes.Black, rect, fmt); 2110g.DrawString("Test String".AsSpan(), _font, Brushes.Black, rect, fmt); 2907Assert.Throws<ArgumentNullException>(() => g.FillPath(Brushes.Black, null)); 2929g.FillPath(Brushes.SteelBlue, path);
System\Drawing\BrushesTests.cs (141)
10yield return Brush(() => Brushes.AliceBlue, Color.AliceBlue); 11yield return Brush(() => Brushes.AntiqueWhite, Color.AntiqueWhite); 12yield return Brush(() => Brushes.Aqua, Color.Aqua); 13yield return Brush(() => Brushes.Aquamarine, Color.Aquamarine); 14yield return Brush(() => Brushes.Azure, Color.Azure); 15yield return Brush(() => Brushes.Beige, Color.Beige); 16yield return Brush(() => Brushes.Bisque, Color.Bisque); 17yield return Brush(() => Brushes.Black, Color.Black); 18yield return Brush(() => Brushes.BlanchedAlmond, Color.BlanchedAlmond); 19yield return Brush(() => Brushes.Blue, Color.Blue); 20yield return Brush(() => Brushes.BlueViolet, Color.BlueViolet); 21yield return Brush(() => Brushes.Brown, Color.Brown); 22yield return Brush(() => Brushes.BurlyWood, Color.BurlyWood); 23yield return Brush(() => Brushes.CadetBlue, Color.CadetBlue); 24yield return Brush(() => Brushes.Chartreuse, Color.Chartreuse); 25yield return Brush(() => Brushes.Chocolate, Color.Chocolate); 26yield return Brush(() => Brushes.Coral, Color.Coral); 27yield return Brush(() => Brushes.CornflowerBlue, Color.CornflowerBlue); 28yield return Brush(() => Brushes.Cornsilk, Color.Cornsilk); 29yield return Brush(() => Brushes.Crimson, Color.Crimson); 30yield return Brush(() => Brushes.Cyan, Color.Cyan); 31yield return Brush(() => Brushes.DarkBlue, Color.DarkBlue); 32yield return Brush(() => Brushes.DarkCyan, Color.DarkCyan); 33yield return Brush(() => Brushes.DarkGoldenrod, Color.DarkGoldenrod); 34yield return Brush(() => Brushes.DarkGray, Color.DarkGray); 35yield return Brush(() => Brushes.DarkGreen, Color.DarkGreen); 36yield return Brush(() => Brushes.DarkKhaki, Color.DarkKhaki); 37yield return Brush(() => Brushes.DarkMagenta, Color.DarkMagenta); 38yield return Brush(() => Brushes.DarkOliveGreen, Color.DarkOliveGreen); 39yield return Brush(() => Brushes.DarkOrange, Color.DarkOrange); 40yield return Brush(() => Brushes.DarkOrchid, Color.DarkOrchid); 41yield return Brush(() => Brushes.DarkRed, Color.DarkRed); 42yield return Brush(() => Brushes.DarkSalmon, Color.DarkSalmon); 43yield return Brush(() => Brushes.DarkSeaGreen, Color.DarkSeaGreen); 44yield return Brush(() => Brushes.DarkSlateBlue, Color.DarkSlateBlue); 45yield return Brush(() => Brushes.DarkSlateGray, Color.DarkSlateGray); 46yield return Brush(() => Brushes.DarkTurquoise, Color.DarkTurquoise); 47yield return Brush(() => Brushes.DarkViolet, Color.DarkViolet); 48yield return Brush(() => Brushes.DeepPink, Color.DeepPink); 49yield return Brush(() => Brushes.DeepSkyBlue, Color.DeepSkyBlue); 50yield return Brush(() => Brushes.DimGray, Color.DimGray); 51yield return Brush(() => Brushes.DodgerBlue, Color.DodgerBlue); 52yield return Brush(() => Brushes.Firebrick, Color.Firebrick); 53yield return Brush(() => Brushes.FloralWhite, Color.FloralWhite); 54yield return Brush(() => Brushes.ForestGreen, Color.ForestGreen); 55yield return Brush(() => Brushes.Fuchsia, Color.Fuchsia); 56yield return Brush(() => Brushes.Gainsboro, Color.Gainsboro); 57yield return Brush(() => Brushes.GhostWhite, Color.GhostWhite); 58yield return Brush(() => Brushes.Gold, Color.Gold); 59yield return Brush(() => Brushes.Goldenrod, Color.Goldenrod); 60yield return Brush(() => Brushes.Gray, Color.Gray); 61yield return Brush(() => Brushes.Green, Color.Green); 62yield return Brush(() => Brushes.GreenYellow, Color.GreenYellow); 63yield return Brush(() => Brushes.Honeydew, Color.Honeydew); 64yield return Brush(() => Brushes.HotPink, Color.HotPink); 65yield return Brush(() => Brushes.IndianRed, Color.IndianRed); 66yield return Brush(() => Brushes.Indigo, Color.Indigo); 67yield return Brush(() => Brushes.Ivory, Color.Ivory); 68yield return Brush(() => Brushes.Khaki, Color.Khaki); 69yield return Brush(() => Brushes.Lavender, Color.Lavender); 70yield return Brush(() => Brushes.LavenderBlush, Color.LavenderBlush); 71yield return Brush(() => Brushes.LawnGreen, Color.LawnGreen); 72yield return Brush(() => Brushes.LemonChiffon, Color.LemonChiffon); 73yield return Brush(() => Brushes.LightBlue, Color.LightBlue); 74yield return Brush(() => Brushes.LightCoral, Color.LightCoral); 75yield return Brush(() => Brushes.LightCyan, Color.LightCyan); 76yield return Brush(() => Brushes.LightGoldenrodYellow, Color.LightGoldenrodYellow); 77yield return Brush(() => Brushes.LightGray, Color.LightGray); 78yield return Brush(() => Brushes.LightGreen, Color.LightGreen); 79yield return Brush(() => Brushes.LightPink, Color.LightPink); 80yield return Brush(() => Brushes.LightSalmon, Color.LightSalmon); 81yield return Brush(() => Brushes.LightSeaGreen, Color.LightSeaGreen); 82yield return Brush(() => Brushes.LightSkyBlue, Color.LightSkyBlue); 83yield return Brush(() => Brushes.LightSlateGray, Color.LightSlateGray); 84yield return Brush(() => Brushes.LightSteelBlue, Color.LightSteelBlue); 85yield return Brush(() => Brushes.LightYellow, Color.LightYellow); 86yield return Brush(() => Brushes.Lime, Color.Lime); 87yield return Brush(() => Brushes.LimeGreen, Color.LimeGreen); 88yield return Brush(() => Brushes.Linen, Color.Linen); 89yield return Brush(() => Brushes.Magenta, Color.Magenta); 90yield return Brush(() => Brushes.Maroon, Color.Maroon); 91yield return Brush(() => Brushes.MediumAquamarine, Color.MediumAquamarine); 92yield return Brush(() => Brushes.MediumBlue, Color.MediumBlue); 93yield return Brush(() => Brushes.MediumOrchid, Color.MediumOrchid); 94yield return Brush(() => Brushes.MediumPurple, Color.MediumPurple); 95yield return Brush(() => Brushes.MediumSeaGreen, Color.MediumSeaGreen); 96yield return Brush(() => Brushes.MediumSlateBlue, Color.MediumSlateBlue); 97yield return Brush(() => Brushes.MediumSpringGreen, Color.MediumSpringGreen); 98yield return Brush(() => Brushes.MediumTurquoise, Color.MediumTurquoise); 99yield return Brush(() => Brushes.MediumVioletRed, Color.MediumVioletRed); 100yield return Brush(() => Brushes.MidnightBlue, Color.MidnightBlue); 101yield return Brush(() => Brushes.MintCream, Color.MintCream); 102yield return Brush(() => Brushes.MistyRose, Color.MistyRose); 103yield return Brush(() => Brushes.Moccasin, Color.Moccasin); 104yield return Brush(() => Brushes.NavajoWhite, Color.NavajoWhite); 105yield return Brush(() => Brushes.Navy, Color.Navy); 106yield return Brush(() => Brushes.OldLace, Color.OldLace); 107yield return Brush(() => Brushes.Olive, Color.Olive); 108yield return Brush(() => Brushes.OliveDrab, Color.OliveDrab); 109yield return Brush(() => Brushes.Orange, Color.Orange); 110yield return Brush(() => Brushes.OrangeRed, Color.OrangeRed); 111yield return Brush(() => Brushes.Orchid, Color.Orchid); 112yield return Brush(() => Brushes.PaleGoldenrod, Color.PaleGoldenrod); 113yield return Brush(() => Brushes.PaleGreen, Color.PaleGreen); 114yield return Brush(() => Brushes.PaleTurquoise, Color.PaleTurquoise); 115yield return Brush(() => Brushes.PaleVioletRed, Color.PaleVioletRed); 116yield return Brush(() => Brushes.PapayaWhip, Color.PapayaWhip); 117yield return Brush(() => Brushes.PeachPuff, Color.PeachPuff); 118yield return Brush(() => Brushes.Peru, Color.Peru); 119yield return Brush(() => Brushes.Pink, Color.Pink); 120yield return Brush(() => Brushes.Plum, Color.Plum); 121yield return Brush(() => Brushes.PowderBlue, Color.PowderBlue); 122yield return Brush(() => Brushes.Purple, Color.Purple); 123yield return Brush(() => Brushes.Red, Color.Red); 124yield return Brush(() => Brushes.RosyBrown, Color.RosyBrown); 125yield return Brush(() => Brushes.RoyalBlue, Color.RoyalBlue); 126yield return Brush(() => Brushes.SaddleBrown, Color.SaddleBrown); 127yield return Brush(() => Brushes.Salmon, Color.Salmon); 128yield return Brush(() => Brushes.SandyBrown, Color.SandyBrown); 129yield return Brush(() => Brushes.SeaGreen, Color.SeaGreen); 130yield return Brush(() => Brushes.SeaShell, Color.SeaShell); 131yield return Brush(() => Brushes.Sienna, Color.Sienna); 132yield return Brush(() => Brushes.Silver, Color.Silver); 133yield return Brush(() => Brushes.SkyBlue, Color.SkyBlue); 134yield return Brush(() => Brushes.SlateBlue, Color.SlateBlue); 135yield return Brush(() => Brushes.SlateGray, Color.SlateGray); 136yield return Brush(() => Brushes.Snow, Color.Snow); 137yield return Brush(() => Brushes.SpringGreen, Color.SpringGreen); 138yield return Brush(() => Brushes.SteelBlue, Color.SteelBlue); 139yield return Brush(() => Brushes.Tan, Color.Tan); 140yield return Brush(() => Brushes.Teal, Color.Teal); 141yield return Brush(() => Brushes.Thistle, Color.Thistle); 142yield return Brush(() => Brushes.Tomato, Color.Tomato); 143yield return Brush(() => Brushes.Transparent, Color.Transparent); 144yield return Brush(() => Brushes.Turquoise, Color.Turquoise); 145yield return Brush(() => Brushes.Violet, Color.Violet); 146yield return Brush(() => Brushes.Wheat, Color.Wheat); 147yield return Brush(() => Brushes.White, Color.White); 148yield return Brush(() => Brushes.WhiteSmoke, Color.WhiteSmoke); 149yield return Brush(() => Brushes.Yellow, Color.Yellow); 150yield return Brush(() => Brushes.YellowGreen, Color.YellowGreen);
System\Drawing\Drawing2D\HatchBrushTests.cs (1)
71SolidBrush brush = Assert.IsType<SolidBrush>(Brushes.Bisque);
System\Drawing\GraphicsTests.cs (4)
2784graphics.DrawString("Test text", SystemFonts.DefaultFont, Brushes.White, default(Point)); 2796() => graphics.DrawString("Test text", SystemFonts.DefaultFont, Brushes.White, default(Point))); 2953graphics.FillRoundedRectangle(Brushes.Green, new(0, 0, 10, 10), new(2, 2)); 2962graphics.FillRoundedRectangle(Brushes.Green, new RectangleF(0, 0, 10, 10), new(2, 2));
System\Drawing\Imaging\Effects\EffectsTests.cs (1)
13graphics.FillRectangle(Brushes.White, new(default, bitmap.Size));
System\Drawing\Imaging\ImageAttributesTests.cs (2)
132graphicsSmallBitmap.FillRectangle(Brushes.White, 0, 0, 100, 100); 134graphicsBigBitmap.FillRectangle(Brushes.White, 0, 0, 200, 100);
System\Drawing\RegionTests.cs (1)
486graphics.FillRegion(Brushes.Blue, region1);
System\Drawing\SolidBrushTests.cs (1)
42SolidBrush brush = Assert.IsType<SolidBrush>(Brushes.Bisque);
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (2)
8126e.Graphics.FillRectangle(Brushes.White, rectangle); 11741bufferedGraphics2.Graphics.FillRectangle(Brushes.Red, band);
System\Windows\Forms\Rendering\ControlPaint.cs (3)
1277Brush brush = Brushes.White; 1492? enabled ? (s_grabBrushPrimary ??= Brushes.White) : SystemBrushes.Control 1493: enabled ? (s_grabBrushSecondary ??= Brushes.Black) : SystemBrushes.Control;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ControlDesigner.cs (3)
2273e.Graphics.FillRectangle(Brushes.White, clientRectangle); 2286e.Graphics.FillRectangle(Brushes.White, imageRect); 2293e.Graphics.FillRectangle(Brushes.White, textRect);
System.Windows.Forms.Primitives (17)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (17)
85KnownColor.Black => Brushes.Black, 86KnownColor.White => Brushes.White, 87KnownColor.Gray => Brushes.Gray, 88KnownColor.Red => Brushes.Red, 89KnownColor.Green => Brushes.Green, 90KnownColor.Blue => Brushes.Blue, 91KnownColor.Yellow => Brushes.Yellow, 92KnownColor.Brown => Brushes.Brown, 93KnownColor.LightGray => Brushes.LightGray, 94KnownColor.LightGreen => Brushes.LightGreen, 95KnownColor.LightBlue => Brushes.LightBlue, 96KnownColor.LightYellow => Brushes.LightYellow, 97KnownColor.DarkGray => Brushes.DarkGray, 98KnownColor.DarkRed => Brushes.DarkRed, 99KnownColor.DarkGreen => Brushes.DarkGreen, 100KnownColor.DarkBlue => Brushes.DarkBlue, 101KnownColor.Transparent => Brushes.Transparent,
WinFormsControlsTest (2)
ListBoxes.cs (2)
39customBrush = Brushes.Green; 43customBrush = Brushes.Red;