111 references to FillRectangle
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
1013
graphics.
FillRectangle
(cellBackground, cellBounds);
System.Drawing.Common.Tests (20)
mono\System.Drawing\GraphicsTests.cs (4)
874
g.
FillRectangle
(brush, new Rectangle(15, 0, -10, 5));
1195
g.
FillRectangle
(Brushes.Red, rect);
1215
g.
FillRectangle
(Brushes.Green, rect);
1389
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)
320
graphics.
FillRectangle
(transparentBlackBrush, new Rectangle(0, 0, 2, 2));
321
graphics.
FillRectangle
(transparentWhiteBrush, new Rectangle(1, 1, 2, 2));
410
graphics.
FillRectangle
(transparentBlackBrush, new Rectangle(0, 0, 2, 2));
411
graphics.
FillRectangle
(transparentWhiteBrush, new Rectangle(1, 1, 2, 2));
866
graphics.
FillRectangle
(brush, new Rectangle(0, 0, 3, 3));
1076
graphics.
FillRectangle
(brush, new Rectangle(0, 0, 3, 2));
1559
graphics.
FillRectangle
(brush, new Rectangle(0, 0, 10, 10));
2741
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)
102
graphics.
FillRectangle
(brush, _rectangle);
182
graphics.
FillRectangle
(brush, _rectangle);
311
graphics.
FillRectangle
(brush, _rectangle);
System\Drawing\TextureBrushTests.cs (1)
814
targetGraphics.
FillRectangle
(brush, new Rectangle(0, 0, 4, 4));
System.Windows.Forms (57)
System\Windows\Forms\Control.cs (2)
8126
e.Graphics.
FillRectangle
(Brushes.White, rectangle);
11733
bufferedGraphics2.Graphics.
FillRectangle
(Brushes.Red, band);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
100
g.
FillRectangle
(brush, bounds);
522
e.GraphicsInternal.
FillRectangle
(background, bounds);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
163
g.
FillRectangle
(SystemBrushes.Control, dropDownRect);
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
40
g.
FillRectangle
(SystemBrushes.Window, fillRect);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16710
g.
FillRectangle
(SystemBrushes.Control, _layout.ResizeBoxRect);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
3599
graphics.
FillRectangle
(br, rectPadding);
3602
graphics.
FillRectangle
(br, rectPadding);
3608
graphics.
FillRectangle
(br, rectPadding);
3611
graphics.
FillRectangle
(br, rectPadding);
3618
graphics.
FillRectangle
(br, rectPadding);
3621
graphics.
FillRectangle
(br, rectPadding);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
2052
g.
FillRectangle
(SystemBrushes.Control, dropRect);
2084
g.
FillRectangle
(SystemBrushes.Control, dropRect);
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);
96
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 (11)
582
g.
FillRectangle
(b, bounds);
639
g.
FillRectangle
(b, bounds);
995
g.
FillRectangle
(b, beginGradient);
1012
g.
FillRectangle
(b, endGradient);
1019
g.
FillRectangle
(b, bounds);
1092
g.
FillRectangle
(b, bounds);
1150
g.
FillRectangle
(b, new Rectangle(Point.Empty, control.Size));
1164
g.
FillRectangle
(b, gradientBounds);
1419
g.
FillRectangle
(b, bounds);
1443
g.
FillRectangle
(b, bounds);
1554
g.
FillRectangle
(b, bounds);
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\Layout\Containers\SplitContainer.cs (1)
1557
g.
FillRectangle
(textureBrush, ClientRectangle);
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
678
g.
FillRectangle
(backBrush, rect);
712
e.Graphics.
FillRectangle
(SystemBrushes.Control, ResizeBoxRectangle);
System\Windows\Forms\Rendering\ControlPaint.cs (5)
439
g.
FillRectangle
(textureBrush, clipRect);
1354
graphics.
FillRectangle
(background, offsetRectangle);
1501
graphics.
FillRectangle
(brush, fillRect);
1551
graphics.
FillRectangle
(t_gridBrush, area);
1880
graphics.
FillRectangle
(frameBrush, outsideRect);
System.Windows.Forms.Design (33)
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\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)
2271
e.Graphics.
FillRectangle
(Brushes.White, clientRectangle);
2284
e.Graphics.
FillRectangle
(Brushes.White, imageRect);
2291
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\ToolStripPanelDesigner.cs (1)
474
paintEvent.Graphics.
FillRectangle
(brush, Control.ClientRectangle);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (7)
1829
g.
FillRectangle
(brush, bounds);
1836
g.
FillRectangle
(b, _hotRegion);
1843
g.
FillRectangle
(b, _hotRegion);
1893
g.
FillRectangle
(brush, drawRect);
1991
g.
FillRectangle
(brush, fillRect);
2000
g.
FillRectangle
(brush, splitButton.ButtonBounds);
2010
g.
FillRectangle
(brush, fillRect);