40 references to SolidBrush
PresentationUI (2)
MS\Internal\Documents\DialogDivider.cs (1)
73
new Pen(new
SolidBrush
(System.Drawing.SystemColors.ControlDark)),
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
1015
SolidBrush cellBackground = new
SolidBrush
(
System.Drawing.Common (2)
System\Drawing\Brushes.cs (1)
318
Brush newBrush = new
SolidBrush
(color);
System\Drawing\SolidBrush.cs (1)
28
internal SolidBrush(Color color, bool immutable) :
this
(color) => _immutable = immutable;
System.Windows.Forms (1)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3804
using var bgBrush = new
SolidBrush
(Color.FromArgb(64, 64, 64));
System.Windows.Forms.Design (32)
System\ComponentModel\Design\ByteViewer.cs (4)
130
using SolidBrush foreground =
new
(ForeColor);
140
using (Brush brush = new
SolidBrush
(SystemColors.ControlLightLight))
195
using Brush foreground = new
SolidBrush
(ForeColor);
223
using Brush foreground = new
SolidBrush
(ForeColor);
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
602
g.FillRectangle(new
SolidBrush
(backColor), res);
628
using (Brush textBrush = new
SolidBrush
(textColor))
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
101
using SolidBrush b =
new
(backColor);
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
396
_watermarkBrush = new
SolidBrush
(c);
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
277
Brush foreBrush = new
SolidBrush
(die.ForeColor);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
1024
using SolidBrush brush =
new
(primaryControl.BackColor);
System\Windows\Forms\Design\Behavior\MiniLockedBorderGlyph.cs (1)
53
pe.Graphics.FillRectangle(new
SolidBrush
(SystemColors.ControlText), bounds);
System\Windows\Forms\Design\ComponentTray.cs (1)
2262
Brush foreBrush = new
SolidBrush
(ForeColor);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2307
e.Graphics.DrawString(exceptionText, errorFont, new
SolidBrush
(Control.ForeColor), textRect, stringFormat);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (3)
992
Brush selectedBrush = new
SolidBrush
(e.BackColor);
993
Brush foreBrush = new
SolidBrush
(e.ForeColor);
994
Brush backBrush = new
SolidBrush
(_selectedColumns.BackColor);
System\Windows\Forms\Design\DesignerUtils.cs (4)
22
private static SolidBrush s_hoverBrush =
new
(Color.FromArgb(alpha: 50, SystemColors.Highlight));
122
g.FillRectangle(new
SolidBrush
(SystemColors.InactiveBorder), 0, 0, s_boxImageSize, s_boxImageSize);
167
s_hoverBrush = new
SolidBrush
(Color.FromArgb(50, SystemColors.Highlight));
237
_ => new
SolidBrush
(color),
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
142
Brush brush = new
SolidBrush
(borderColor);
System\Windows\Forms\Design\TabOrder.cs (3)
57
_highlightTextBrush = new
SolidBrush
(SystemColors.HighlightText);
215
using (SolidBrush brush =
new
(backColor))
285
Brush foreBrush = new
SolidBrush
(textColor);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
914
using Pen p = new(new
SolidBrush
(Color.Black));
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
461
using Brush brush = new
SolidBrush
(Color.FromArgb(50, Color.White));
System\Windows\Forms\Design\ToolStripTemplateNode.cs (6)
1786
using (SolidBrush b =
new
(_dropDownMouseOverColor))
1793
using (SolidBrush b =
new
(_dropDownMouseDownColor))
1843
using (SolidBrush brush =
new
(_toolStripBorderColor))
1941
using (SolidBrush brush =
new
(_dropDownMouseDownColor))
1950
using (SolidBrush brush =
new
(_dropDownMouseOverColor))
1960
using (SolidBrush brush =
new
(_dropDownMouseOverColor))
System.Windows.Forms.Primitives (3)
System\Windows\Forms\GdiPlus\SolidBrushCache.cs (1)
19
=> _brush = new
SolidBrush
(color);
System\Windows\Forms\SystemDrawingExtensions.cs (2)
121
? new
SolidBrush
(Color.FromArgb(color.ToArgb()))
122
: new
SolidBrush
(color);