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