71 references to SystemBrushes
PresentationUI (2)
MS\Internal\Documents\SignatureSummaryDialog.cs (2)
664Brush brush = isSelected ? SystemBrushes.HighlightText : SystemBrushes.ControlText;
System.Drawing (1)
System.Drawing.cs (1)
154[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.SystemBrushes))]
System.Windows.Forms (48)
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (3)
144g.FillRectangle(SystemBrushes.Control, dropDownRect); 146Brush brush = (comboBox.Enabled) ? SystemBrushes.ControlText : SystemBrushes.ControlDark;
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
44g.FillRectangle(SystemBrushes.Window, fillRect);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (4)
2085private static SolidBrush DefaultForeBrush => (SolidBrush)SystemBrushes.WindowText; 2089private static SolidBrush DefaultHeadersBackBrush => (SolidBrush)SystemBrushes.Control; 2113private static SolidBrush DefaultSelectionBackBrush => (SolidBrush)SystemBrushes.Highlight; 2115private static SolidBrush DefaultSelectionForeBrush => (SolidBrush)SystemBrushes.HighlightText;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16701g.FillRectangle(SystemBrushes.Control, _layout.ResizeBoxRect);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (4)
2049g.FillRectangle(SystemBrushes.Control, dropRect); 2081g.FillRectangle(SystemBrushes.Control, dropRect); 2159SystemBrushes.ControlText, 2183g.FillPolygon(SystemBrushes.ControlText, (ReadOnlySpan<Point>)[pt1, pt2, middle]);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
138SystemBrushes.Window,
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3446g.FillRectangle(SystemBrushes.ControlDark, ClientRectangle);
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (1)
34g.FillRectangle(SystemBrushes.Window, fillRect);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (4)
78g.FillRectangle(SystemBrushes.Control, dropDownRect); 134? SystemBrushes.HighlightText 135: SystemBrushes.ControlText; 139brush = SystemBrushes.GrayText;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (11)
80g.FillRectangles(SystemBrushes.ControlText, shadowRects); 148g.FillRectangle(SystemBrushes.Highlight, bounds); 189g.FillRectangle(SystemBrushes.Highlight, bounds); 268g.FillRectangle(SystemBrushes.Control, e.ConnectedArea); 314g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(1, 1, 1, 1)); 319g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.Width - 2, 1, 1, 1)); 326g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(1, bounds.Height - 2, 1, 1)); 333g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.Width - 2, bounds.Height - 2, 1, 1)); 412g.FillRectangle(SystemBrushes.Highlight, bounds); 448g.FillRectangle(SystemBrushes.Highlight, bounds); 457g.FillRectangle(SystemBrushes.Highlight, bounds);
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (4)
79g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(1, 1, 1, 1)); 84g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.Width - 2, 1, 1, 1)); 91g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(1, bounds.Height - 2, 1, 1)); 98g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.Width - 2, bounds.Height - 2, 1, 1));
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
182RenderArrowInternal(g, overflowArrowRect, direction, SystemBrushes.ButtonHighlight); 186Point middle = RenderArrowInternal(g, overflowArrowRect, direction, SystemBrushes.ControlText);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
1032highLightBrush: SystemBrushes.ButtonHighlight, 1033shadowBrush: SystemBrushes.GrayText);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
511g.FillRectangle(SystemBrushes.Highlight, fillRect);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2833g.FillRectangle(SystemBrushes.Highlight, bounds);
System\Windows\Forms\Form.cs (1)
4467e.GraphicsInternal.FillRectangle(SystemBrushes.AppWorkspace, ClientRectangle);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
712e.Graphics.FillRectangle(SystemBrushes.Control, ResizeBoxRectangle);
System\Windows\Forms\Rendering\ControlPaint.cs (5)
1356? SystemBrushes.Control 1357: SystemBrushes.Window; 1520? enabled ? (s_grabBrushPrimary ??= Brushes.White) : SystemBrushes.Control 1521: enabled ? (s_grabBrushSecondary ??= Brushes.Black) : SystemBrushes.Control; 2018graphics.DrawString(s, font, SystemBrushes.GrayText, layoutRectangle, format);
System.Windows.Forms.Design (19)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
622g.DrawString(e.Index.ToString(CultureInfo.CurrentCulture), Font, SystemBrushes.ControlText,
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
257deviceContext.TryGetGraphics(create: true)?.FillPolygon(SystemBrushes.ControlText, arrow);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
291g.FillRectangle(SystemBrushes.Window, editRect);
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
73e.Graphics.FillRectangle(SystemBrushes.Control, new Rectangle(e.Bounds.X + 2, e.Bounds.Y + 2, cursorWidth, e.Bounds.Height - 4));
System\Drawing\Design\FontNameEditor.cs (2)
42e.Graphics.FillRectangle(SystemBrushes.ActiveCaption, e.Bounds); 79e.Graphics.DrawString("abcd", font, SystemBrushes.ActiveCaptionText, e.Bounds, format);
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
277e.Graphics.FillRectangle(SystemBrushes.ControlDark, rc);
System\Windows\Forms\Design\DesignerUtils.cs (2)
214Brush brush = SystemBrushes.ControlDarkDark; 217brush = SystemBrushes.ControlLight;
System\Windows\Forms\Design\TabOrder.cs (1)
277brush = SystemBrushes.Highlight;
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (9)
739e.Graphics.FillRectangle(SystemBrushes.Window, imageBounds); 769e.Graphics.FillRectangle(SystemBrushes.Highlight, fillBounds); 774e.Graphics.FillRectangle(SystemBrushes.Window, fillBounds); 885e.Graphics.FillRectangle(SystemBrushes.Control, bounds); 892e.Graphics.DrawString(className, boldFont, SystemBrushes.WindowText, bounds, stringFormat); 908e.Graphics.FillRectangle(SystemBrushes.Control, bounds); 911e.Graphics.DrawString(SR.ToolStripItemCollectionEditorLabelNone, boldFont, SystemBrushes.WindowText, bounds, stringFormat); 915e.Graphics.FillRectangle(SystemBrushes.Control, bounds); 918e.Graphics.DrawString(SR.ToolStripItemCollectionEditorLabelMultipleItems, boldFont, SystemBrushes.WindowText, bounds, stringFormat);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (1)
49? (SolidBrush?)SystemBrushes.FromSystemColor(color)