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