192 references to FillRectangle
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
1017
graphics.
FillRectangle
(cellBackground, cellBounds);
System.Drawing.Common.Tests (20)
mono\System.Drawing\GraphicsTests.cs (4)
873
g.
FillRectangle
(brush, new Rectangle(15, 0, -10, 5));
1194
g.
FillRectangle
(Brushes.Red, rect);
1214
g.
FillRectangle
(Brushes.Green, rect);
1388
g.
FillRectangle
(Brushes.Green, rect);
System\Drawing\BufferedGraphicsTests.cs (3)
47
graphics.
FillRectangle
(brush, new Rectangle(0, 0, 3, 3));
67
graphics.
FillRectangle
(brush, new Rectangle(0, 0, 3, 3));
92
originalGraphics.
FillRectangle
(brush, new Rectangle(0, 0, 3, 3));
System\Drawing\GraphicsTests.cs (8)
321
graphics.
FillRectangle
(transparentBlackBrush, new Rectangle(0, 0, 2, 2));
322
graphics.
FillRectangle
(transparentWhiteBrush, new Rectangle(1, 1, 2, 2));
411
graphics.
FillRectangle
(transparentBlackBrush, new Rectangle(0, 0, 2, 2));
412
graphics.
FillRectangle
(transparentWhiteBrush, new Rectangle(1, 1, 2, 2));
867
graphics.
FillRectangle
(brush, new Rectangle(0, 0, 3, 3));
1077
graphics.
FillRectangle
(brush, new Rectangle(0, 0, 3, 2));
1560
graphics.
FillRectangle
(brush, new Rectangle(0, 0, 10, 10));
2742
graphics.
FillRectangle
(brush, new Rectangle(0, 0, 2, 2));
System\Drawing\Imaging\Effects\EffectsTests.cs (1)
13
graphics.
FillRectangle
(Brushes.White, new(default, bitmap.Size));
System\Drawing\Imaging\ImageAttributesTests.cs (3)
103
graphics.
FillRectangle
(brush, _rectangle);
183
graphics.
FillRectangle
(brush, _rectangle);
312
graphics.
FillRectangle
(brush, _rectangle);
System\Drawing\TextureBrushTests.cs (1)
815
targetGraphics.
FillRectangle
(brush, new Rectangle(0, 0, 4, 4));
System.Windows.Forms (129)
System\Windows\Forms\Control.cs (3)
8229
e.Graphics.
FillRectangle
(brush, rectangle);
8247
e.Graphics.
FillRectangle
(Brushes.White, rectangle);
11882
bufferedGraphics2.Graphics.
FillRectangle
(Brushes.Red, band);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (6)
102
g.
FillRectangle
(brush, bounds);
342
g.
FillRectangle
(brush, left);
343
g.
FillRectangle
(brush, right);
344
g.
FillRectangle
(brush, top);
345
g.
FillRectangle
(brush, bottom);
524
e.GraphicsInternal.
FillRectangle
(background, bounds);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (1)
78
e.GraphicsInternal.
FillRectangle
(brush, bounds);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\FlatButtonDarkModeRenderer.cs (1)
30
graphics.
FillRectangle
(back, bounds);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3818
g.
FillRectangle
(bgBrush, textBounds);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (2)
86
g.
FillRectangle
(b, _whiteFillRect);
144
g.
FillRectangle
(SystemBrushes.Control, dropDownRect);
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
44
g.
FillRectangle
(SystemBrushes.Window, fillRect);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
5670
g.
FillRectangle
(brush, rectInsertionBar);
16701
g.
FillRectangle
(SystemBrushes.Control, _layout.ResizeBoxRect);
19224
graphics.
FillRectangle
(brush, rcBelowRows);
19268
graphics.
FillRectangle
(brush, rcNextRows);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
690
g.
FillRectangle
(backBrush, valBounds);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
3601
graphics.
FillRectangle
(br, rectPadding);
3604
graphics.
FillRectangle
(br, rectPadding);
3610
graphics.
FillRectangle
(br, rectPadding);
3613
graphics.
FillRectangle
(br, rectPadding);
3620
graphics.
FillRectangle
(br, rectPadding);
3623
graphics.
FillRectangle
(br, rectPadding);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
1125
g.
FillRectangle
(brush, valBounds);
1338
g.
FillRectangle
(highBrush, checkBounds);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
873
g.
FillRectangle
(brush, backgroundBounds);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
2049
g.
FillRectangle
(SystemBrushes.Control, dropRect);
2081
g.
FillRectangle
(SystemBrushes.Control, dropRect);
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
550
graphics.
FillRectangle
(brush, bounds);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (2)
789
g.
FillRectangle
(brush!, valBounds);
858
g.
FillRectangle
(brush!, valBounds);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
917
g.
FillRectangle
(brush, valBounds);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
742
graphics.
FillRectangle
(brush, valBounds);
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
690
graphics.
FillRectangle
(brush, valBounds);
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (1)
271
graphics.
FillRectangle
(brush, valBounds);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
669
graphics.
FillRectangle
(brush, rect);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (2)
625
e.GraphicsInternal.
FillRectangle
(brush, textBounds);
743
e.Graphics.
FillRectangle
(brush, emptyRectangle);
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (1)
97
Graphics.
FillRectangle
(backBrush, Bounds);
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (1)
66
Graphics.
FillRectangle
(backBrush, Bounds);
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (1)
98
Graphics.
FillRectangle
(backBrush, Bounds);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (4)
2894
pevent.Graphics.
FillRectangle
(backgroundBrush, new Rectangle(0, 0, width, psheetLoc.Y));
2901
pevent.Graphics.
FillRectangle
(
2910
pevent.Graphics.
FillRectangle
(
2917
pevent.Graphics.
FillRectangle
(backgroundBrush, new Rectangle(0, yLast, width, Size.Height - yLast));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
137
pevent.Graphics.
FillRectangle
(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (3)
1671
g.
FillRectangle
(brush, outline);
1742
g.
FillRectangle
(brush, outline);
1830
g.
FillRectangle
(backBrush, clipRect);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
2389
g.
FillRectangle
(brush, clearRect);
3391
g.
FillRectangle
(backBrush, clearRect);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3446
g.
FillRectangle
(SystemBrushes.ControlDark, ClientRectangle);
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (1)
34
g.
FillRectangle
(SystemBrushes.Window, fillRect);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (5)
78
g.
FillRectangle
(SystemBrushes.Control, dropDownRect);
96
g.
FillRectangle
(b, dropDownRect);
103
g.
FillRectangle
(b, dropDownRect);
113
g.
FillRectangle
(b, dropDownRect);
124
g.
FillRectangle
(b, dropDownRect);
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (10)
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 (26)
303
g.
FillRectangle
(brush, item.SplitterBounds);
581
g.
FillRectangle
(b, bounds);
606
g.
FillRectangle
(brush, fillRect);
638
g.
FillRectangle
(b, bounds);
657
g.
FillRectangle
(brush, fillRect);
988
g.
FillRectangle
(brush, bounds);
994
g.
FillRectangle
(b, beginGradient);
1011
g.
FillRectangle
(b, endGradient);
1018
g.
FillRectangle
(b, bounds);
1058
g.
FillRectangle
(brush, bounds);
1091
g.
FillRectangle
(b, bounds);
1133
g.
FillRectangle
(brush, new Rectangle(Point.Empty, control.Size));
1149
g.
FillRectangle
(b, new Rectangle(Point.Empty, control.Size));
1163
g.
FillRectangle
(b, gradientBounds);
1185
e.Graphics.
FillRectangle
(brush, bounds);
1205
g.
FillRectangle
(brush, e.ConnectedArea);
1326
g.
FillRectangle
(brush, fillRect);
1391
g.
FillRectangle
(brush, new Rectangle(gradientCopyPixel, s_onePix));
1398
g.
FillRectangle
(brush, otherBottom);
1418
g.
FillRectangle
(b, bounds);
1423
g.
FillRectangle
(brush, bounds);
1442
g.
FillRectangle
(b, bounds);
1447
g.
FillRectangle
(brush, bounds);
1553
g.
FillRectangle
(b, bounds);
1558
g.
FillRectangle
(brush, bounds);
1589
g.
FillRectangle
(brush, bounds);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemDarkModeRenderer.cs (6)
108
g.
FillRectangle
(brush, bounds);
240
e.Graphics.
FillRectangle
(highlightBrush, bounds);
295
e.Graphics.
FillRectangle
(fillColor, bounds);
330
e.Graphics.
FillRectangle
(fillColor, bounds);
438
e.Graphics.
FillRectangle
(fillBrush, bounds);
584
e.Graphics.
FillRectangle
(marginColorBrush, e.AffectedBounds);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (3)
112
g.
FillRectangle
(backBrush, bounds);
511
g.
FillRectangle
(SystemBrushes.Highlight, fillRect);
645
g.
FillRectangle
(brush, item.SplitterBounds);
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2833
g.
FillRectangle
(SystemBrushes.Highlight, bounds);
2840
g.
FillRectangle
(brush, bounds);
System\Windows\Forms\Form.cs (1)
4467
e.GraphicsInternal.
FillRectangle
(SystemBrushes.AppWorkspace, ClientRectangle);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (3)
1031
g.
FillRectangle
(brush, SplitterRectangle);
1557
g.
FillRectangle
(textureBrush, ClientRectangle);
1562
g.
FillRectangle
(solidBrush, _splitterRect);
System\Windows\Forms\Printing\PrintPreviewControl.cs (4)
355
pevent.Graphics.
FillRectangle
(backBrush, rect);
678
g.
FillRectangle
(backBrush, rect);
689
g.
FillRectangle
(brush, box);
712
e.Graphics.
FillRectangle
(SystemBrushes.Control, ResizeBoxRectangle);
System\Windows\Forms\Rendering\ControlPaint.cs (6)
464
g.
FillRectangle
(textureBrush, clipRect);
493
g.
FillRectangle
(brush, clipRect);
1386
graphics.
FillRectangle
(background, offsetRectangle);
1529
graphics.
FillRectangle
(brush, fillRect);
1576
graphics.
FillRectangle
(t_gridBrush, area);
1940
graphics.
FillRectangle
(frameBrush, outsideRect);
System\Windows\Forms\Rendering\ControlPaint_ModernControlButtonRenderer.cs (1)
105
graphics.
FillRectangle
(backgroundBrush, bounds);
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
126
GraphicsInternal.
FillRectangle
(backBrush, Bounds);
System\Windows\Forms\ToolTip\DrawToolTipEventArgs.cs (1)
75
Graphics.
FillRectangle
(backBrush, Bounds);
System.Windows.Forms.Design (42)
System\ComponentModel\Design\ByteViewer.cs (1)
142
g.
FillRectangle
(
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
588
g.
FillRectangle
(new SolidBrush(backColor), res);
System\ComponentModel\Design\DesignerActionPanel.cs (2)
478
e.Graphics.
FillRectangle
(gradientBrush, ClientRectangle);
483
e.Graphics.
FillRectangle
(gradientBrush, ClientRectangle);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
291
g.
FillRectangle
(SystemBrushes.Window, editRect);
System\Drawing\Design\ColorEditor.ColorPalette.cs (2)
361
graphics.
FillRectangle
(brush, ClientRectangle);
417
g.
FillRectangle
(brush, rect);
System\Drawing\Design\ColorEditor.cs (1)
52
e.Graphics.
FillRectangle
(brush, e.Bounds);
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 (1)
42
e.Graphics.
FillRectangle
(SystemBrushes.ActiveCaption, e.Bounds);
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
270
e.Graphics.
FillRectangle
(SystemBrushes.ControlDark, rc);
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
213
pe.Graphics.
FillRectangle
(DesignerUtils.HoverBrush, Rectangle.Inflate(_bounds, -1, -1));
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
1031
g.
FillRectangle
(brush, controlRect);
System\Windows\Forms\Design\Behavior\MiniLockedBorderGlyph.cs (1)
53
pe.Graphics.
FillRectangle
(new SolidBrush(SystemColors.ControlText), bounds);
System\Windows\Forms\Design\ComponentTray.cs (4)
1459
gr.
FillRectangle
(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect, SelectionBorderGlyphType.Top));
1460
gr.
FillRectangle
(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect, SelectionBorderGlyphType.Bottom));
1461
gr.
FillRectangle
(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect, SelectionBorderGlyphType.Left));
1462
gr.
FillRectangle
(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect, SelectionBorderGlyphType.Right));
System\Windows\Forms\Design\ControlDesigner.cs (3)
2286
e.Graphics.
FillRectangle
(Brushes.White, clientRectangle);
2299
e.Graphics.
FillRectangle
(Brushes.White, imageRect);
2306
e.Graphics.
FillRectangle
(Brushes.White, textRect);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (3)
1008
e.Graphics.
FillRectangle
(selectedBrush, focusRectangle);
1021
e.Graphics.
FillRectangle
(backBrush, new Rectangle(focusRectangle.Right + 1, e.Bounds.Y, e.Bounds.Width - focusRectangle.Right - 1, e.Bounds.Height));
1025
e.Graphics.
FillRectangle
(backBrush, new Rectangle(bounds.X, e.Bounds.Y, e.Bounds.Width - bounds.X, e.Bounds.Height));
System\Windows\Forms\Design\DesignerUtils.cs (1)
302
graphics.
FillRectangle
(s_selectionBorderBrush, bounds);
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
144
graphics.
FillRectangle
(brush, outer);
System\Windows\Forms\Design\TabOrder.cs (2)
217
graphics.
FillRectangle
(brush, ctlOuter);
282
graphics.
FillRectangle
(brush, convertedRectangle);
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (6)
743
e.Graphics.
FillRectangle
(SystemBrushes.Window, imageBounds);
773
e.Graphics.
FillRectangle
(SystemBrushes.Highlight, fillBounds);
778
e.Graphics.
FillRectangle
(SystemBrushes.Window, fillBounds);
889
e.Graphics.
FillRectangle
(SystemBrushes.Control, bounds);
912
e.Graphics.
FillRectangle
(SystemBrushes.Control, bounds);
919
e.Graphics.
FillRectangle
(SystemBrushes.Control, bounds);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
468
paintEvent.Graphics.
FillRectangle
(brush, Control.ClientRectangle);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (7)
1787
g.
FillRectangle
(brush, bounds);
1794
g.
FillRectangle
(b, _hotRegion);
1801
g.
FillRectangle
(b, _hotRegion);
1851
g.
FillRectangle
(brush, drawRect);
1949
g.
FillRectangle
(brush, fillRect);
1958
g.
FillRectangle
(brush, splitButton.ButtonBounds);
1968
g.
FillRectangle
(brush, fillRect);