7 types derived from Brush
System.Drawing.Common (5)
Special\NotSupported.cs (5)
1106public sealed partial class SolidBrush : System.Drawing.Brush 1330public sealed partial class TextureBrush : System.Drawing.Brush 1621public sealed partial class HatchBrush : System.Drawing.Brush 1704public sealed partial class LinearGradientBrush : System.Drawing.Brush 1818public sealed partial class PathGradientBrush : System.Drawing.Brush
System.Drawing.Common.Tests (2)
System\Drawing\BrushTests.cs (1)
27private class SubBrush : Brush
System\Drawing\PenTests.cs (1)
166public class SubBrush : Brush
292 references to Brush
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
664Brush brush = isSelected ? SystemBrushes.HighlightText : SystemBrushes.ControlText;
System.Drawing (1)
System.Drawing.cs (1)
7[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Brush))]
System.Drawing.Common (209)
Special\NotSupported.cs (209)
71public static System.Drawing.Brush AliceBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 72public static System.Drawing.Brush AntiqueWhite { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 73public static System.Drawing.Brush Aqua { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 74public static System.Drawing.Brush Aquamarine { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 75public static System.Drawing.Brush Azure { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 76public static System.Drawing.Brush Beige { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 77public static System.Drawing.Brush Bisque { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 78public static System.Drawing.Brush Black { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 79public static System.Drawing.Brush BlanchedAlmond { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 80public static System.Drawing.Brush Blue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 81public static System.Drawing.Brush BlueViolet { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 82public static System.Drawing.Brush Brown { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 83public static System.Drawing.Brush BurlyWood { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 84public static System.Drawing.Brush CadetBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 85public static System.Drawing.Brush Chartreuse { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 86public static System.Drawing.Brush Chocolate { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 87public static System.Drawing.Brush Coral { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 88public static System.Drawing.Brush CornflowerBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 89public static System.Drawing.Brush Cornsilk { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 90public static System.Drawing.Brush Crimson { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 91public static System.Drawing.Brush Cyan { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 92public static System.Drawing.Brush DarkBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 93public static System.Drawing.Brush DarkCyan { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 94public static System.Drawing.Brush DarkGoldenrod { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 95public static System.Drawing.Brush DarkGray { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 96public static System.Drawing.Brush DarkGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 97public static System.Drawing.Brush DarkKhaki { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 98public static System.Drawing.Brush DarkMagenta { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 99public static System.Drawing.Brush DarkOliveGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 100public static System.Drawing.Brush DarkOrange { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 101public static System.Drawing.Brush DarkOrchid { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 102public static System.Drawing.Brush DarkRed { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 103public static System.Drawing.Brush DarkSalmon { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 104public static System.Drawing.Brush DarkSeaGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 105public static System.Drawing.Brush DarkSlateBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 106public static System.Drawing.Brush DarkSlateGray { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 107public static System.Drawing.Brush DarkTurquoise { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 108public static System.Drawing.Brush DarkViolet { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 109public static System.Drawing.Brush DeepPink { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 110public static System.Drawing.Brush DeepSkyBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 111public static System.Drawing.Brush DimGray { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 112public static System.Drawing.Brush DodgerBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 113public static System.Drawing.Brush Firebrick { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 114public static System.Drawing.Brush FloralWhite { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 115public static System.Drawing.Brush ForestGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 116public static System.Drawing.Brush Fuchsia { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 117public static System.Drawing.Brush Gainsboro { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 118public static System.Drawing.Brush GhostWhite { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 119public static System.Drawing.Brush Gold { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 120public static System.Drawing.Brush Goldenrod { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 121public static System.Drawing.Brush Gray { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 122public static System.Drawing.Brush Green { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 123public static System.Drawing.Brush GreenYellow { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 124public static System.Drawing.Brush Honeydew { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 125public static System.Drawing.Brush HotPink { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 126public static System.Drawing.Brush IndianRed { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 127public static System.Drawing.Brush Indigo { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 128public static System.Drawing.Brush Ivory { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 129public static System.Drawing.Brush Khaki { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 130public static System.Drawing.Brush Lavender { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 131public static System.Drawing.Brush LavenderBlush { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 132public static System.Drawing.Brush LawnGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 133public static System.Drawing.Brush LemonChiffon { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 134public static System.Drawing.Brush LightBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 135public static System.Drawing.Brush LightCoral { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 136public static System.Drawing.Brush LightCyan { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 137public static System.Drawing.Brush LightGoldenrodYellow { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 138public static System.Drawing.Brush LightGray { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 139public static System.Drawing.Brush LightGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 140public static System.Drawing.Brush LightPink { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 141public static System.Drawing.Brush LightSalmon { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 142public static System.Drawing.Brush LightSeaGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 143public static System.Drawing.Brush LightSkyBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 144public static System.Drawing.Brush LightSlateGray { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 145public static System.Drawing.Brush LightSteelBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 146public static System.Drawing.Brush LightYellow { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 147public static System.Drawing.Brush Lime { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 148public static System.Drawing.Brush LimeGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 149public static System.Drawing.Brush Linen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 150public static System.Drawing.Brush Magenta { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 151public static System.Drawing.Brush Maroon { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 152public static System.Drawing.Brush MediumAquamarine { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 153public static System.Drawing.Brush MediumBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 154public static System.Drawing.Brush MediumOrchid { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 155public static System.Drawing.Brush MediumPurple { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 156public static System.Drawing.Brush MediumSeaGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 157public static System.Drawing.Brush MediumSlateBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 158public static System.Drawing.Brush MediumSpringGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 159public static System.Drawing.Brush MediumTurquoise { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 160public static System.Drawing.Brush MediumVioletRed { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 161public static System.Drawing.Brush MidnightBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 162public static System.Drawing.Brush MintCream { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 163public static System.Drawing.Brush MistyRose { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 164public static System.Drawing.Brush Moccasin { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 165public static System.Drawing.Brush NavajoWhite { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 166public static System.Drawing.Brush Navy { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 167public static System.Drawing.Brush OldLace { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 168public static System.Drawing.Brush Olive { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 169public static System.Drawing.Brush OliveDrab { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 170public static System.Drawing.Brush Orange { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 171public static System.Drawing.Brush OrangeRed { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 172public static System.Drawing.Brush Orchid { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 173public static System.Drawing.Brush PaleGoldenrod { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 174public static System.Drawing.Brush PaleGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 175public static System.Drawing.Brush PaleTurquoise { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 176public static System.Drawing.Brush PaleVioletRed { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 177public static System.Drawing.Brush PapayaWhip { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 178public static System.Drawing.Brush PeachPuff { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 179public static System.Drawing.Brush Peru { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 180public static System.Drawing.Brush Pink { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 181public static System.Drawing.Brush Plum { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 182public static System.Drawing.Brush PowderBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 183public static System.Drawing.Brush Purple { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 184public static System.Drawing.Brush Red { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 185public static System.Drawing.Brush RosyBrown { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 186public static System.Drawing.Brush RoyalBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 187public static System.Drawing.Brush SaddleBrown { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 188public static System.Drawing.Brush Salmon { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 189public static System.Drawing.Brush SandyBrown { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 190public static System.Drawing.Brush SeaGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 191public static System.Drawing.Brush SeaShell { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 192public static System.Drawing.Brush Sienna { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 193public static System.Drawing.Brush Silver { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 194public static System.Drawing.Brush SkyBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 195public static System.Drawing.Brush SlateBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 196public static System.Drawing.Brush SlateGray { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 197public static System.Drawing.Brush Snow { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 198public static System.Drawing.Brush SpringGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 199public static System.Drawing.Brush SteelBlue { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 200public static System.Drawing.Brush Tan { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 201public static System.Drawing.Brush Teal { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 202public static System.Drawing.Brush Thistle { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 203public static System.Drawing.Brush Tomato { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 204public static System.Drawing.Brush Transparent { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 205public static System.Drawing.Brush Turquoise { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 206public static System.Drawing.Brush Violet { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 207public static System.Drawing.Brush Wheat { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 208public static System.Drawing.Brush White { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 209public static System.Drawing.Brush WhiteSmoke { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 210public static System.Drawing.Brush Yellow { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 211public static System.Drawing.Brush YellowGreen { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 542public void DrawString(string? s, System.Drawing.Font font, System.Drawing.Brush brush, System.Drawing.PointF point) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 543public void DrawString(string? s, System.Drawing.Font font, System.Drawing.Brush brush, System.Drawing.PointF point, System.Drawing.StringFormat? format) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 544public void DrawString(string? s, System.Drawing.Font font, System.Drawing.Brush brush, System.Drawing.RectangleF layoutRectangle) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 545public void DrawString(string? s, System.Drawing.Font font, System.Drawing.Brush brush, System.Drawing.RectangleF layoutRectangle, System.Drawing.StringFormat? format) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 546public void DrawString(string? s, System.Drawing.Font font, System.Drawing.Brush brush, float x, float y) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 547public void DrawString(string? s, System.Drawing.Font font, System.Drawing.Brush brush, float x, float y, System.Drawing.StringFormat? format) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 587public void FillClosedCurve(System.Drawing.Brush brush, System.Drawing.PointF[] points) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 588public void FillClosedCurve(System.Drawing.Brush brush, System.Drawing.PointF[] points, System.Drawing.Drawing2D.FillMode fillmode) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 589public void FillClosedCurve(System.Drawing.Brush brush, System.Drawing.PointF[] points, System.Drawing.Drawing2D.FillMode fillmode, float tension) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 590public void FillClosedCurve(System.Drawing.Brush brush, System.Drawing.Point[] points) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 591public void FillClosedCurve(System.Drawing.Brush brush, System.Drawing.Point[] points, System.Drawing.Drawing2D.FillMode fillmode) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 592public void FillClosedCurve(System.Drawing.Brush brush, System.Drawing.Point[] points, System.Drawing.Drawing2D.FillMode fillmode, float tension) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 593public void FillEllipse(System.Drawing.Brush brush, System.Drawing.Rectangle rect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 594public void FillEllipse(System.Drawing.Brush brush, System.Drawing.RectangleF rect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 595public void FillEllipse(System.Drawing.Brush brush, int x, int y, int width, int height) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 596public void FillEllipse(System.Drawing.Brush brush, float x, float y, float width, float height) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 597public void FillPath(System.Drawing.Brush brush, System.Drawing.Drawing2D.GraphicsPath path) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 598public void FillPie(System.Drawing.Brush brush, System.Drawing.Rectangle rect, float startAngle, float sweepAngle) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 599public void FillPie(System.Drawing.Brush brush, int x, int y, int width, int height, int startAngle, int sweepAngle) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 600public void FillPie(System.Drawing.Brush brush, float x, float y, float width, float height, float startAngle, float sweepAngle) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 601public void FillPolygon(System.Drawing.Brush brush, System.Drawing.PointF[] points) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 602public void FillPolygon(System.Drawing.Brush brush, System.Drawing.PointF[] points, System.Drawing.Drawing2D.FillMode fillMode) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 603public void FillPolygon(System.Drawing.Brush brush, System.Drawing.Point[] points) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 604public void FillPolygon(System.Drawing.Brush brush, System.Drawing.Point[] points, System.Drawing.Drawing2D.FillMode fillMode) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 605public void FillRectangle(System.Drawing.Brush brush, System.Drawing.Rectangle rect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 606public void FillRectangle(System.Drawing.Brush brush, System.Drawing.RectangleF rect) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 607public void FillRectangle(System.Drawing.Brush brush, int x, int y, int width, int height) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 608public void FillRectangle(System.Drawing.Brush brush, float x, float y, float width, float height) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 609public void FillRectangles(System.Drawing.Brush brush, System.Drawing.RectangleF[] rects) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 610public void FillRectangles(System.Drawing.Brush brush, System.Drawing.Rectangle[] rects) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 611public void FillRegion(System.Drawing.Brush brush, System.Drawing.Region region) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 844public Pen(System.Drawing.Brush brush) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 845public Pen(System.Drawing.Brush brush, float width) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 849public System.Drawing.Brush Brush { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1192public static System.Drawing.Brush ActiveBorder { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1193public static System.Drawing.Brush ActiveCaption { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1194public static System.Drawing.Brush ActiveCaptionText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1195public static System.Drawing.Brush AppWorkspace { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1196public static System.Drawing.Brush ButtonFace { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1197public static System.Drawing.Brush ButtonHighlight { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1198public static System.Drawing.Brush ButtonShadow { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1199public static System.Drawing.Brush Control { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1200public static System.Drawing.Brush ControlDark { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1201public static System.Drawing.Brush ControlDarkDark { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1202public static System.Drawing.Brush ControlLight { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1203public static System.Drawing.Brush ControlLightLight { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1204public static System.Drawing.Brush ControlText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1205public static System.Drawing.Brush Desktop { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1206public static System.Drawing.Brush GradientActiveCaption { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1207public static System.Drawing.Brush GradientInactiveCaption { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1208public static System.Drawing.Brush GrayText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1209public static System.Drawing.Brush Highlight { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1210public static System.Drawing.Brush HighlightText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1211public static System.Drawing.Brush HotTrack { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1212public static System.Drawing.Brush InactiveBorder { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1213public static System.Drawing.Brush InactiveCaption { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1214public static System.Drawing.Brush InactiveCaptionText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1215public static System.Drawing.Brush Info { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1216public static System.Drawing.Brush InfoText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1217public static System.Drawing.Brush Menu { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1218public static System.Drawing.Brush MenuBar { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1219public static System.Drawing.Brush MenuHighlight { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1220public static System.Drawing.Brush MenuText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1221public static System.Drawing.Brush ScrollBar { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1222public static System.Drawing.Brush Window { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1223public static System.Drawing.Brush WindowFrame { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1224public static System.Drawing.Brush WindowText { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 1225public static System.Drawing.Brush FromSystemColor(System.Drawing.Color c) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Drawing.Common.Tests (9)
System\Drawing\BrushesTests.cs (2)
153public static object[] Brush(Func<Brush> getBrush, Color expectedColor) => [getBrush, expectedColor]; 157public void Brushes_Get_ReturnsExpected(Func<Brush> getBrush, Color expectedColor)
System\Drawing\PenTests.cs (5)
22public void Ctor_Brush<T>(T brush, PenType penType) where T : Brush 55public void Ctor_Brush_Width<T>(T brush, float width, PenType expectedPenType) where T : Brush 151public void Brush_SetValid_GetReturnsExpected<T>(T brush, PenType penType) where T : Brush 265public void Color_Set_GetReturnsExpected(Brush brush, PenType penType) 1200private static void VerifyPen<T>(Pen pen, PenType expectedPenType, float expectedWidth) where T : Brush
System\Drawing\SystemBrushesTests.cs (2)
45public static object[] Brush(Func<Brush> getBrush, Color expectedColor) => [getBrush, expectedColor]; 49public void SystemBrushes_Get_ReturnsExpected(Func<Brush> getBrush, Color expectedColor)
System.Windows.Forms (50)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (3)
75internal static Brush CreateDitherBrush(Color color1, Color color2) 101using Brush brush = CreateDitherBrush(color1, color2); 516internal void PaintButtonBackground(PaintEventArgs e, Rectangle bounds, Brush? background)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (2)
22using Brush backgroundBrush = CreateDitherBrush(colors.Highlight, colors.ButtonFace); 68using Brush backgroundBrush = CreateDitherBrush(colors.Highlight, colors.ButtonFace);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
129Brush? backgroundBrush = null;
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
146Brush brush = (comboBox.Enabled) ? SystemBrushes.ControlText : SystemBrushes.ControlDark;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
3594Brush br,
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (4)
90using Brush b = new LinearGradientBrush( 107using Brush b = new LinearGradientBrush( 118using Brush b = new LinearGradientBrush( 128Brush brush;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (9)
576using Brush b = new LinearGradientBrush( 633using Brush b = new LinearGradientBrush( 993using (Brush b = new LinearGradientBrush(beginGradient, beginColor, middleColor, mode)) 1018using Brush b = new LinearGradientBrush(bounds, beginColor, endColor, mode); 1087using Brush b = new LinearGradientBrush( 1413using Brush b = new LinearGradientBrush( 1437using Brush b = new LinearGradientBrush( 1549using Brush b = new LinearGradientBrush( 1646private static Point RenderArrowInternal(Graphics g, Rectangle dropDownRect, ArrowDirection direction, Brush brush)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
1040Brush highLightBrush, 1041Brush shadowBrush)
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGridColumnStyle.cs (2)
209Brush backBrush, 210Brush foreBrush,
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGridTextBoxColumn.cs (2)
74Brush backBrush, 75Brush foreBrush,
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
614private void DrawPages(Graphics g, Rectangle rect, PreviewPageInfo[] pages, Brush backBrush)
System\Windows\Forms\Rendering\ControlPaint.cs (14)
35private static Brush? s_grabBrushPrimary; // brush used for primary grab handles 36private static Brush? s_grabBrushSecondary; // brush used for secondary grab handles 39private static Brush? t_frameBrushActive; // brush used for the active selection frame 44private static Brush? t_frameBrushSelected; // brush used for the inactive selection frame 49private static Brush? t_gridBrush; // brush used to draw a grid 1302Brush brush = Brushes.White; 1348Brush background = ((state & ButtonState.Inactive) == ButtonState.Inactive) 1366Brush background, 1515Brush brush = primary 1936Brush frameBrush = active ? GetActiveBrush(backColor) : GetSelectedBrush(backColor); 2140private static Brush GetActiveBrush(Color backColor) 2248using (Brush brush = new TextureBrush(b)) 2258using (Brush brush = new TextureBrush(b)) 2270private static Brush GetSelectedBrush(Color backColor)
System\Windows\Forms\Rendering\ControlPaint_ModernControlButtonRenderer.cs (8)
223private static void DrawUpDownArrows(Graphics graphics, Brush brush, int centerX, int centerY, Rectangle bounds) 251private static void DrawLeftRightArrows(Graphics graphics, Brush brush, int centerX, int centerY, Rectangle bounds) 279private static void DrawEllipseSymbol(Graphics graphics, Brush brush, int centerX, int centerY, Rectangle bounds) 310private static void DrawOpenDropDownChevron(Graphics graphics, Brush brush, int centerX, int centerY, int size) 341private static void DrawUpArrow(Graphics graphics, Brush brush, int centerX, int centerY, int size) 353private static void DrawDownArrow(Graphics graphics, Brush brush, int centerX, int centerY, int size) 365private static void DrawLeftArrow(Graphics graphics, Brush brush, int centerX, int centerY, int size) 377private static void DrawRightArrow(Graphics graphics, Brush brush, int centerX, int centerY, int size)
System.Windows.Forms.Design (18)
System\ComponentModel\Design\ByteViewer.cs (3)
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 (1)
614using (Brush textBrush = new SolidBrush(textColor))
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
387private Brush WatermarkBrush
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
277Brush foreBrush = new SolidBrush(die.ForeColor);
System\Windows\Forms\Design\ComponentTray.cs (1)
2280Brush foreBrush = new SolidBrush(ForeColor);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (3)
995Brush selectedBrush = new SolidBrush(e.BackColor); 996Brush foreBrush = new SolidBrush(e.ForeColor); 997Brush backBrush = new SolidBrush(_selectedColumns.BackColor);
System\Windows\Forms\Design\DesignerUtils.cs (3)
133public static Brush HoverBrush => s_hoverBrush; 214Brush brush = SystemBrushes.ControlDarkDark; 234Brush brush = style switch
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
145Brush brush = new SolidBrush(borderColor);
System\Windows\Forms\Design\TabOrder.cs (3)
29private readonly Brush _highlightTextBrush; 263Brush brush; 288Brush foreBrush = new SolidBrush(textColor);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
467using Brush brush = new SolidBrush(Color.FromArgb(50, Color.White));
System.Windows.Forms.Primitives (2)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (1)
82private static Brush? BrushFromKnownColor(KnownColor color) => color switch
System\Windows\Forms\SystemDrawingExtensions.cs (1)
112internal static Pen CreateStaticPen(this Brush brush, float width = 1.0f)
TestPassApp (1)
PrintingControls.cs (1)
23Brush brush = Brushes.Blue;
WinFormsControlsTest (1)
ListBoxes.cs (1)
36Brush customBrush;