189 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 (126)
System\Windows\Forms\Control.cs (3)
8210
e.Graphics.
FillRectangle
(brush, rectangle);
8228
e.Graphics.
FillRectangle
(Brushes.White, rectangle);
11866
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.FlatComboAdapter.cs (2)
86
g.
FillRectangle
(b, _whiteFillRect);
144
g.
FillRectangle
(SystemBrushes.Control, dropDownRect);
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
48
g.
FillRectangle
(SystemBrushes.Window, fillRect);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
5673
g.
FillRectangle
(brush, rectInsertionBar);
16704
g.
FillRectangle
(SystemBrushes.Control, _layout.ResizeBoxRect);
19227
graphics.
FillRectangle
(brush, rcBelowRows);
19271
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)
670
graphics.
FillRectangle
(brush, rect);
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (2)
623
e.GraphicsInternal.
FillRectangle
(brush, textBounds);
741
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)
2892
pevent.Graphics.
FillRectangle
(backgroundBrush, new Rectangle(0, 0, width, psheetLoc.Y));
2899
pevent.Graphics.
FillRectangle
(
2908
pevent.Graphics.
FillRectangle
(
2915
pevent.Graphics.
FillRectangle
(backgroundBrush, new Rectangle(0, yLast, width, Size.Height - yLast));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
89
pevent.Graphics.
FillRectangle
(SystemBrushes.Window, dropDownButtonRect);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (3)
1674
g.
FillRectangle
(brush, outline);
1745
g.
FillRectangle
(brush, outline);
1833
g.
FillRectangle
(backBrush, clipRect);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
2366
g.
FillRectangle
(brush, clearRect);
3368
g.
FillRectangle
(backBrush, clearRect);
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)
304
g.
FillRectangle
(brush, item.SplitterBounds);
582
g.
FillRectangle
(b, bounds);
607
g.
FillRectangle
(brush, fillRect);
639
g.
FillRectangle
(b, bounds);
658
g.
FillRectangle
(brush, fillRect);
989
g.
FillRectangle
(brush, bounds);
995
g.
FillRectangle
(b, beginGradient);
1012
g.
FillRectangle
(b, endGradient);
1019
g.
FillRectangle
(b, bounds);
1059
g.
FillRectangle
(brush, bounds);
1092
g.
FillRectangle
(b, bounds);
1134
g.
FillRectangle
(brush, new Rectangle(Point.Empty, control.Size));
1150
g.
FillRectangle
(b, new Rectangle(Point.Empty, control.Size));
1164
g.
FillRectangle
(b, gradientBounds);
1186
e.Graphics.
FillRectangle
(brush, bounds);
1206
g.
FillRectangle
(brush, e.ConnectedArea);
1327
g.
FillRectangle
(brush, fillRect);
1392
g.
FillRectangle
(brush, new Rectangle(gradientCopyPixel, s_onePix));
1399
g.
FillRectangle
(brush, otherBottom);
1419
g.
FillRectangle
(b, bounds);
1424
g.
FillRectangle
(brush, bounds);
1443
g.
FillRectangle
(b, bounds);
1448
g.
FillRectangle
(brush, bounds);
1554
g.
FillRectangle
(b, bounds);
1559
g.
FillRectangle
(brush, bounds);
1590
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)
114
g.
FillRectangle
(backBrush, bounds);
513
g.
FillRectangle
(SystemBrushes.Highlight, fillRect);
647
g.
FillRectangle
(brush, item.SplitterBounds);
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2846
g.
FillRectangle
(SystemBrushes.Highlight, bounds);
2853
g.
FillRectangle
(brush, bounds);
System\Windows\Forms\Form.cs (1)
4486
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)
436
g.
FillRectangle
(textureBrush, clipRect);
458
g.
FillRectangle
(brush, clipRect);
1351
graphics.
FillRectangle
(background, offsetRectangle);
1497
graphics.
FillRectangle
(brush, fillRect);
1547
graphics.
FillRectangle
(t_gridBrush, area);
1876
graphics.
FillRectangle
(frameBrush, outsideRect);
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)
1037
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)
1465
gr.
FillRectangle
(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect, SelectionBorderGlyphType.Top));
1466
gr.
FillRectangle
(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect, SelectionBorderGlyphType.Bottom));
1467
gr.
FillRectangle
(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect, SelectionBorderGlyphType.Left));
1468
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)
147
graphics.
FillRectangle
(brush, outer);
System\Windows\Forms\Design\TabOrder.cs (2)
220
graphics.
FillRectangle
(brush, ctlOuter);
285
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)
1790
g.
FillRectangle
(brush, bounds);
1797
g.
FillRectangle
(b, _hotRegion);
1804
g.
FillRectangle
(b, _hotRegion);
1854
g.
FillRectangle
(brush, drawRect);
1952
g.
FillRectangle
(brush, fillRect);
1961
g.
FillRectangle
(brush, splitButton.ButtonBounds);
1971
g.
FillRectangle
(brush, fillRect);