98 references to SystemBrushes
PresentationUI (2)
MS\Internal\Documents\SignatureSummaryDialog.cs (2)
656Brush brush = isSelected ? SystemBrushes.HighlightText : SystemBrushes.ControlText;
System.Drawing (1)
System.Drawing.cs (1)
154[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.SystemBrushes))]
System.Drawing.Common.Tests (36)
System\Drawing\SolidBrushTests.cs (2)
96SolidBrush brush = Assert.IsType<SolidBrush>(SystemBrushes.ActiveBorder); 111SolidBrush brush = Assert.IsType<SolidBrush>(SystemBrushes.ActiveBorder);
System\Drawing\SystemBrushesTests.cs (34)
10yield return Brush(() => SystemBrushes.ActiveBorder, SystemColors.ActiveBorder); 11yield return Brush(() => SystemBrushes.ActiveCaption, SystemColors.ActiveCaption); 12yield return Brush(() => SystemBrushes.ActiveCaptionText, SystemColors.ActiveCaptionText); 13yield return Brush(() => SystemBrushes.AppWorkspace, SystemColors.AppWorkspace); 14yield return Brush(() => SystemBrushes.ButtonFace, SystemColors.ButtonFace); 15yield return Brush(() => SystemBrushes.ButtonHighlight, SystemColors.ButtonHighlight); 16yield return Brush(() => SystemBrushes.ButtonShadow, SystemColors.ButtonShadow); 17yield return Brush(() => SystemBrushes.Control, SystemColors.Control); 18yield return Brush(() => SystemBrushes.ControlDark, SystemColors.ControlDark); 19yield return Brush(() => SystemBrushes.ControlDarkDark, SystemColors.ControlDarkDark); 20yield return Brush(() => SystemBrushes.ControlLight, SystemColors.ControlLight); 21yield return Brush(() => SystemBrushes.ControlLightLight, SystemColors.ControlLightLight); 22yield return Brush(() => SystemBrushes.ControlText, SystemColors.ControlText); 23yield return Brush(() => SystemBrushes.Desktop, SystemColors.Desktop); 24yield return Brush(() => SystemBrushes.GradientActiveCaption, SystemColors.GradientActiveCaption); 25yield return Brush(() => SystemBrushes.GradientInactiveCaption, SystemColors.GradientInactiveCaption); 26yield return Brush(() => SystemBrushes.GrayText, SystemColors.GrayText); 27yield return Brush(() => SystemBrushes.Highlight, SystemColors.Highlight); 28yield return Brush(() => SystemBrushes.HighlightText, SystemColors.HighlightText); 29yield return Brush(() => SystemBrushes.HotTrack, SystemColors.HotTrack); 30yield return Brush(() => SystemBrushes.InactiveBorder, SystemColors.InactiveBorder); 31yield return Brush(() => SystemBrushes.InactiveCaption, SystemColors.InactiveCaption); 32yield return Brush(() => SystemBrushes.InactiveCaptionText, SystemColors.InactiveCaptionText); 33yield return Brush(() => SystemBrushes.Info, SystemColors.Info); 34yield return Brush(() => SystemBrushes.InfoText, SystemColors.InfoText); 35yield return Brush(() => SystemBrushes.Menu, SystemColors.Menu); 36yield return Brush(() => SystemBrushes.MenuBar, SystemColors.MenuBar); 37yield return Brush(() => SystemBrushes.MenuHighlight, SystemColors.MenuHighlight); 38yield return Brush(() => SystemBrushes.MenuText, SystemColors.MenuText); 39yield return Brush(() => SystemBrushes.ScrollBar, SystemColors.ScrollBar); 40yield return Brush(() => SystemBrushes.Window, SystemColors.Window); 41yield return Brush(() => SystemBrushes.WindowFrame, SystemColors.WindowFrame); 42yield return Brush(() => SystemBrushes.WindowText, SystemColors.WindowText); 61AssertExtensions.Throws<ArgumentException>(null, () => SystemBrushes.FromSystemColor(Color.Blue));
System.Windows.Forms (47)
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (3)
163g.FillRectangle(SystemBrushes.Control, dropDownRect); 165Brush brush = (comboBox.Enabled) ? SystemBrushes.ControlText : SystemBrushes.ControlDark;
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
40g.FillRectangle(SystemBrushes.Window, fillRect);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (4)
2078private static SolidBrush DefaultForeBrush => (SolidBrush)SystemBrushes.WindowText; 2082private static SolidBrush DefaultHeadersBackBrush => (SolidBrush)SystemBrushes.Control; 2106private static SolidBrush DefaultSelectionBackBrush => (SolidBrush)SystemBrushes.Highlight; 2108private static SolidBrush DefaultSelectionForeBrush => (SolidBrush)SystemBrushes.HighlightText;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16691g.FillRectangle(SystemBrushes.Control, _layout.ResizeBoxRect);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (4)
2056g.FillRectangle(SystemBrushes.Control, dropRect); 2088g.FillRectangle(SystemBrushes.Control, dropRect); 2166SystemBrushes.ControlText, 2190g.FillPolygon(SystemBrushes.ControlText, (ReadOnlySpan<Point>)[pt1, pt2, middle]);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
87pevent.Graphics.FillRectangle(SystemBrushes.Window, dropDownButtonRect);
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.ControlLight, 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)
1002g.FillRectangles(SystemBrushes.ButtonHighlight, whiteRectangles); 1003g.FillRectangles(SystemBrushes.ButtonShadow, greyRectangles);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
458g.FillRectangle(SystemBrushes.Highlight, fillRect);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2846g.FillRectangle(SystemBrushes.Highlight, bounds);
System\Windows\Forms\Form.cs (1)
4427e.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)
1324? SystemBrushes.Control 1325: SystemBrushes.Window; 1492? enabled ? (s_grabBrushPrimary ??= Brushes.White) : SystemBrushes.Control 1493: enabled ? (s_grabBrushSecondary ??= Brushes.Black) : SystemBrushes.Control; 1958graphics.DrawString(s, font, SystemBrushes.GrayText, layoutRectangle, format);
System.Windows.Forms.Design (10)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
608g.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)
69e.Graphics.FillRectangle(SystemBrushes.Control, new Rectangle(e.Bounds.X + 2, e.Bounds.Y + 2, 32, 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)
270e.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)
280brush = SystemBrushes.Highlight;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\GdiPlus\GdiPlusCache.cs (1)
49? (SolidBrush?)SystemBrushes.FromSystemColor(color)
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
325pe.Graphics.DrawString($"Design time \n{Control.Site?.Name} !", Control.Font, SystemBrushes.WindowText, new PointF(12, 12));