88 references to SystemBrushes
System.Windows.Forms (77)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (2)
497
brush = (SolidBrush)
SystemBrushes
.FromSystemColor(c);
645
brush =
SystemBrushes
.FromSystemColor(c);
winforms\Managed\System\WinForms\ComboBox.cs (4)
3464
graphics.FillRectangle(
SystemBrushes
.Control, rect.left, rect.top,
6061
g.FillRectangle(
SystemBrushes
.Control, dropDownRect);
6063
Brush brush = (comboBox.Enabled) ?
SystemBrushes
.ControlText :
SystemBrushes
.ControlDark;
winforms\Managed\System\WinForms\ComboBoxRenderer.cs (1)
57
g.FillRectangle(
SystemBrushes
.Window, fillRect);
winforms\Managed\System\WinForms\Control.cs (1)
9834
g.FillRectangle(
SystemBrushes
.Control, rectangle);
winforms\Managed\System\WinForms\ControlPaint.cs (5)
1239
SystemBrushes
.Control :
1240
SystemBrushes
.Window;
1416
brush =
SystemBrushes
.Control;
1432
brush =
SystemBrushes
.Control;
1938
graphics.DrawString(s, font,
SystemBrushes
.GrayText, layoutRectangle, format);
winforms\Managed\System\WinForms\DataGrid.cs (13)
607
return (SolidBrush)
SystemBrushes
.ActiveCaption;
612
return (SolidBrush)
SystemBrushes
.ActiveCaptionText;
617
return (SolidBrush)
SystemBrushes
.Window;
622
return (SolidBrush)
SystemBrushes
.WindowText;
627
return (SolidBrush)
SystemBrushes
.AppWorkspace;
632
return (SolidBrush)
SystemBrushes
.WindowText;
637
return (SolidBrush)
SystemBrushes
.Control;
642
return (SolidBrush)
SystemBrushes
.Window;
647
return (SolidBrush)
SystemBrushes
.Control;
652
return (SolidBrush)
SystemBrushes
.Control;
657
return (SolidBrush)
SystemBrushes
.ControlText;
667
return (SolidBrush)
SystemBrushes
.HotTrack;
4418
g.FillRectangle(
SystemBrushes
.AppWorkspace, layout.ParentRows);
winforms\Managed\System\WinForms\DataGridCaption.cs (2)
127
return (SolidBrush)
SystemBrushes
.ActiveCaption;
137
return (SolidBrush)
SystemBrushes
.ActiveCaptionText;
winforms\Managed\System\WinForms\DataGridTable.cs (9)
324
return (SolidBrush)
SystemBrushes
.Window;
329
return (SolidBrush)
SystemBrushes
.Window;
334
return (SolidBrush)
SystemBrushes
.WindowText;
339
return (SolidBrush)
SystemBrushes
.Control;
344
return (SolidBrush)
SystemBrushes
.Control;
349
return (SolidBrush)
SystemBrushes
.ControlText;
359
return (SolidBrush)
SystemBrushes
.HotTrack;
364
return (SolidBrush)
SystemBrushes
.ActiveCaption;
369
return (SolidBrush)
SystemBrushes
.ActiveCaptionText;
winforms\Managed\System\WinForms\DataGridView.cs (6)
2477
return (SolidBrush)
SystemBrushes
.Window;
2485
return (SolidBrush)
SystemBrushes
.AppWorkspace;
2612
return (SolidBrush)
SystemBrushes
.WindowText;
2628
return (SolidBrush)
SystemBrushes
.Control;
2656
return (SolidBrush)
SystemBrushes
.Highlight;
2664
return (SolidBrush)
SystemBrushes
.HighlightText;
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (4)
2283
g.FillRectangle(
SystemBrushes
.Control, dropRect);
2314
g.FillRectangle(
SystemBrushes
.Control, dropRect);
2447
g.FillPolygon(
SystemBrushes
.ControlText, new Point[]
2470
g.FillPolygon(
SystemBrushes
.ControlText, new Point[] { pt1, pt2, middle });
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
17148
g.FillRectangle(
SystemBrushes
.Control, this.layout.ResizeBoxRect);
winforms\Managed\System\WinForms\Form.cs (1)
5075
e.Graphics.FillRectangle(
SystemBrushes
.AppWorkspace, ClientRectangle);
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
3292
background =
SystemBrushes
.FromSystemColor(BackColor);
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (1)
99
pevent.Graphics.FillRectangle(
SystemBrushes
.Window, dropDownButtonRect);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
207
backgroundBrush =
SystemBrushes
.Window;
winforms\Managed\System\WinForms\ToolStripComboBox.cs (4)
692
g.FillRectangle(
SystemBrushes
.Control, dropDownRect);
727
brush =
SystemBrushes
.HighlightText;
730
brush =
SystemBrushes
.ControlText;
734
brush =
SystemBrushes
.GrayText;
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (10)
75
g.FillRectangles(
SystemBrushes
.ControlLight, shadowRects);
149
g.FillRectangle(
SystemBrushes
.Highlight, bounds);
237
g.FillRectangle(
SystemBrushes
.Control, e.ConnectedArea);
279
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(1, 1, 1, 1));
283
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(bounds.Width - 2, 1, 1, 1));
288
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(1, bounds.Height - 2, 1, 1));
295
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(bounds.Width - 2, bounds.Height - 2, 1, 1));
396
g.FillRectangle(
SystemBrushes
.Highlight, bounds);
424
g.FillRectangle(
SystemBrushes
.Highlight, bounds);
431
g.FillRectangle(
SystemBrushes
.Highlight, bounds);
winforms\Managed\System\WinForms\ToolStripProfessionalLowResolutionRenderer.cs (4)
65
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(1, 1, 1, 1));
69
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(bounds.Width - 2, 1, 1, 1));
74
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(1, bounds.Height - 2, 1, 1));
81
g.FillRectangle(
SystemBrushes
.ButtonShadow, new Rectangle(bounds.Width - 2, bounds.Height - 2, 1, 1));
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (2)
171
RenderArrowInternal(g, overflowArrowRect, direction,
SystemBrushes
.ButtonHighlight);
175
Point middle = RenderArrowInternal(g, overflowArrowRect, direction,
SystemBrushes
.ControlText);
winforms\Managed\System\WinForms\ToolStripRenderer.cs (2)
1048
g.FillRectangles(
SystemBrushes
.ButtonHighlight, whiteRectangles);
1049
g.FillRectangles(
SystemBrushes
.ButtonShadow, greyRectangles);
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (2)
70
g.FillRectangle(
SystemBrushes
.FromSystemColor(backColor), bounds);
404
g.FillRectangle(
SystemBrushes
.Highlight, fillRect);
winforms\Managed\System\WinForms\TreeView.cs (1)
2843
g.FillRectangle(
SystemBrushes
.Highlight, bounds);
System.Workflow.ComponentModel (11)
AuthoringOM\Design\DesignerWidgets.cs (7)
234
graphics.DrawString(index.ToString(CultureInfo.CurrentCulture), Control.DefaultFont,
SystemBrushes
.ControlText, (RectangleF)itemRectangle, format);
1225
graphics.FillRectangle(
SystemBrushes
.Window, this.formRectangle);
1239
graphics.FillRectangle(
SystemBrushes
.InactiveCaptionText, itemBounds.X, itemBounds.Y, itemBounds.Width - 1, itemBounds.Height - 1);
1271
ActivityDesignerPaint.DrawText(graphics, Font, descriptionString, textRectangle, StringAlignment.Near, TextQuality.Aliased,
SystemBrushes
.ControlText);
1893
Brush backgroundBrush =
SystemBrushes
.Control;
1928
e.Graphics.DrawString(tabItem.Text, Font,
SystemBrushes
.ControlText, tabTextRectangleF, stringFormat);
1937
graphics.DrawString(this.tabItemList[tabItemIndex].Text, Font,
SystemBrushes
.ControlText, new Rectangle(0, 0, bitmap.Width, bitmap.Height), stringFormat);
AuthoringOM\Design\Glyphs\ConfigErrorGlyph.cs (2)
83
graphics.FillRectangle(
SystemBrushes
.ButtonFace, activatedBounds);
91
graphics.FillPath(
SystemBrushes
.ControlText, dropDownIndicator);
AuthoringOM\Design\MessageFilters\DragDropManager.cs (1)
695
draggedImageGraphics.DrawString(description, parentView.Font,
SystemBrushes
.WindowText, descriptionRectangle, stringFormat);
AuthoringOM\Design\WorkflowView.cs (1)
1082
e.Graphics.FillRectangle(
SystemBrushes
.Control, new Rectangle(Width - SystemInformation.VerticalScrollBarWidth, Height - SystemInformation.HorizontalScrollBarHeight, SystemInformation.VerticalScrollBarWidth, SystemInformation.HorizontalScrollBarHeight));