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