98 references to SystemBrushes
PresentationUI (2)
MS\Internal\Documents\SignatureSummaryDialog.cs (2)
656
Brush 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)
96
SolidBrush brush = Assert.IsType<SolidBrush>(
SystemBrushes
.ActiveBorder);
111
SolidBrush brush = Assert.IsType<SolidBrush>(
SystemBrushes
.ActiveBorder);
System\Drawing\SystemBrushesTests.cs (34)
10
yield return Brush(() =>
SystemBrushes
.ActiveBorder, SystemColors.ActiveBorder);
11
yield return Brush(() =>
SystemBrushes
.ActiveCaption, SystemColors.ActiveCaption);
12
yield return Brush(() =>
SystemBrushes
.ActiveCaptionText, SystemColors.ActiveCaptionText);
13
yield return Brush(() =>
SystemBrushes
.AppWorkspace, SystemColors.AppWorkspace);
14
yield return Brush(() =>
SystemBrushes
.ButtonFace, SystemColors.ButtonFace);
15
yield return Brush(() =>
SystemBrushes
.ButtonHighlight, SystemColors.ButtonHighlight);
16
yield return Brush(() =>
SystemBrushes
.ButtonShadow, SystemColors.ButtonShadow);
17
yield return Brush(() =>
SystemBrushes
.Control, SystemColors.Control);
18
yield return Brush(() =>
SystemBrushes
.ControlDark, SystemColors.ControlDark);
19
yield return Brush(() =>
SystemBrushes
.ControlDarkDark, SystemColors.ControlDarkDark);
20
yield return Brush(() =>
SystemBrushes
.ControlLight, SystemColors.ControlLight);
21
yield return Brush(() =>
SystemBrushes
.ControlLightLight, SystemColors.ControlLightLight);
22
yield return Brush(() =>
SystemBrushes
.ControlText, SystemColors.ControlText);
23
yield return Brush(() =>
SystemBrushes
.Desktop, SystemColors.Desktop);
24
yield return Brush(() =>
SystemBrushes
.GradientActiveCaption, SystemColors.GradientActiveCaption);
25
yield return Brush(() =>
SystemBrushes
.GradientInactiveCaption, SystemColors.GradientInactiveCaption);
26
yield return Brush(() =>
SystemBrushes
.GrayText, SystemColors.GrayText);
27
yield return Brush(() =>
SystemBrushes
.Highlight, SystemColors.Highlight);
28
yield return Brush(() =>
SystemBrushes
.HighlightText, SystemColors.HighlightText);
29
yield return Brush(() =>
SystemBrushes
.HotTrack, SystemColors.HotTrack);
30
yield return Brush(() =>
SystemBrushes
.InactiveBorder, SystemColors.InactiveBorder);
31
yield return Brush(() =>
SystemBrushes
.InactiveCaption, SystemColors.InactiveCaption);
32
yield return Brush(() =>
SystemBrushes
.InactiveCaptionText, SystemColors.InactiveCaptionText);
33
yield return Brush(() =>
SystemBrushes
.Info, SystemColors.Info);
34
yield return Brush(() =>
SystemBrushes
.InfoText, SystemColors.InfoText);
35
yield return Brush(() =>
SystemBrushes
.Menu, SystemColors.Menu);
36
yield return Brush(() =>
SystemBrushes
.MenuBar, SystemColors.MenuBar);
37
yield return Brush(() =>
SystemBrushes
.MenuHighlight, SystemColors.MenuHighlight);
38
yield return Brush(() =>
SystemBrushes
.MenuText, SystemColors.MenuText);
39
yield return Brush(() =>
SystemBrushes
.ScrollBar, SystemColors.ScrollBar);
40
yield return Brush(() =>
SystemBrushes
.Window, SystemColors.Window);
41
yield return Brush(() =>
SystemBrushes
.WindowFrame, SystemColors.WindowFrame);
42
yield return Brush(() =>
SystemBrushes
.WindowText, SystemColors.WindowText);
61
AssertExtensions.Throws<ArgumentException>(null, () =>
SystemBrushes
.FromSystemColor(Color.Blue));
System.Windows.Forms (47)
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (3)
163
g.FillRectangle(
SystemBrushes
.Control, dropDownRect);
165
Brush brush = (comboBox.Enabled) ?
SystemBrushes
.ControlText :
SystemBrushes
.ControlDark;
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
40
g.FillRectangle(
SystemBrushes
.Window, fillRect);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (4)
2078
private static SolidBrush DefaultForeBrush => (SolidBrush)
SystemBrushes
.WindowText;
2082
private static SolidBrush DefaultHeadersBackBrush => (SolidBrush)
SystemBrushes
.Control;
2106
private static SolidBrush DefaultSelectionBackBrush => (SolidBrush)
SystemBrushes
.Highlight;
2108
private static SolidBrush DefaultSelectionForeBrush => (SolidBrush)
SystemBrushes
.HighlightText;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16691
g.FillRectangle(
SystemBrushes
.Control, _layout.ResizeBoxRect);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (4)
2056
g.FillRectangle(
SystemBrushes
.Control, dropRect);
2088
g.FillRectangle(
SystemBrushes
.Control, dropRect);
2166
SystemBrushes
.ControlText,
2190
g.FillPolygon(
SystemBrushes
.ControlText, (ReadOnlySpan<Point>)[pt1, pt2, middle]);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
87
pevent.Graphics.FillRectangle(
SystemBrushes
.Window, dropDownButtonRect);
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (1)
34
g.FillRectangle(
SystemBrushes
.Window, fillRect);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (4)
78
g.FillRectangle(
SystemBrushes
.Control, dropDownRect);
134
?
SystemBrushes
.HighlightText
135
:
SystemBrushes
.ControlText;
139
brush =
SystemBrushes
.GrayText;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (11)
80
g.FillRectangles(
SystemBrushes
.ControlLight, shadowRects);
148
g.FillRectangle(
SystemBrushes
.Highlight, bounds);
189
g.FillRectangle(
SystemBrushes
.Highlight, bounds);
268
g.FillRectangle(
SystemBrushes
.Control, e.ConnectedArea);
314
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(1, 1, 1, 1));
319
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(bounds.Width - 2, 1, 1, 1));
326
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(1, bounds.Height - 2, 1, 1));
333
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(bounds.Width - 2, bounds.Height - 2, 1, 1));
412
g.FillRectangle(
SystemBrushes
.Highlight, bounds);
448
g.FillRectangle(
SystemBrushes
.Highlight, bounds);
457
g.FillRectangle(
SystemBrushes
.Highlight, bounds);
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (4)
79
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(1, 1, 1, 1));
84
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(bounds.Width - 2, 1, 1, 1));
91
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(1, bounds.Height - 2, 1, 1));
98
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(bounds.Width - 2, bounds.Height - 2, 1, 1));
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
182
RenderArrowInternal(g, overflowArrowRect, direction,
SystemBrushes
.ButtonHighlight);
186
Point middle = RenderArrowInternal(g, overflowArrowRect, direction,
SystemBrushes
.ControlText);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
1002
g.FillRectangles(
SystemBrushes
.ButtonHighlight, whiteRectangles);
1003
g.FillRectangles(
SystemBrushes
.ButtonShadow, greyRectangles);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
458
g.FillRectangle(
SystemBrushes
.Highlight, fillRect);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2846
g.FillRectangle(
SystemBrushes
.Highlight, bounds);
System\Windows\Forms\Form.cs (1)
4427
e.GraphicsInternal.FillRectangle(
SystemBrushes
.AppWorkspace, ClientRectangle);
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
712
e.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;
1958
graphics.DrawString(s, font,
SystemBrushes
.GrayText, layoutRectangle, format);
System.Windows.Forms.Design (10)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
608
g.DrawString(e.Index.ToString(CultureInfo.CurrentCulture), Font,
SystemBrushes
.ControlText,
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
257
deviceContext.TryGetGraphics(create: true)?.FillPolygon(
SystemBrushes
.ControlText, arrow);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
291
g.FillRectangle(
SystemBrushes
.Window, editRect);
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
69
e.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)
42
e.Graphics.FillRectangle(
SystemBrushes
.ActiveCaption, e.Bounds);
79
e.Graphics.DrawString("abcd", font,
SystemBrushes
.ActiveCaptionText, e.Bounds, format);
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
270
e.Graphics.FillRectangle(
SystemBrushes
.ControlDark, rc);
System\Windows\Forms\Design\DesignerUtils.cs (2)
214
Brush brush =
SystemBrushes
.ControlDarkDark;
217
brush =
SystemBrushes
.ControlLight;
System\Windows\Forms\Design\TabOrder.cs (1)
280
brush =
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)
325
pe.Graphics.DrawString($"Design time \n{Control.Site?.Name} !", Control.Font,
SystemBrushes
.WindowText, new PointF(12, 12));