111 references to FillRectangle
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
1013graphics.FillRectangle(cellBackground, cellBounds);
System.Drawing.Common.Tests (20)
mono\System.Drawing\GraphicsTests.cs (4)
874g.FillRectangle(brush, new Rectangle(15, 0, -10, 5)); 1195g.FillRectangle(Brushes.Red, rect); 1215g.FillRectangle(Brushes.Green, rect); 1389g.FillRectangle(Brushes.Green, rect);
System\Drawing\BufferedGraphicsTests.cs (3)
47graphics.FillRectangle(brush, new Rectangle(0, 0, 3, 3)); 67graphics.FillRectangle(brush, new Rectangle(0, 0, 3, 3)); 92originalGraphics.FillRectangle(brush, new Rectangle(0, 0, 3, 3));
System\Drawing\GraphicsTests.cs (8)
320graphics.FillRectangle(transparentBlackBrush, new Rectangle(0, 0, 2, 2)); 321graphics.FillRectangle(transparentWhiteBrush, new Rectangle(1, 1, 2, 2)); 410graphics.FillRectangle(transparentBlackBrush, new Rectangle(0, 0, 2, 2)); 411graphics.FillRectangle(transparentWhiteBrush, new Rectangle(1, 1, 2, 2)); 866graphics.FillRectangle(brush, new Rectangle(0, 0, 3, 3)); 1076graphics.FillRectangle(brush, new Rectangle(0, 0, 3, 2)); 1559graphics.FillRectangle(brush, new Rectangle(0, 0, 10, 10)); 2741graphics.FillRectangle(brush, new Rectangle(0, 0, 2, 2));
System\Drawing\Imaging\Effects\EffectsTests.cs (1)
13graphics.FillRectangle(Brushes.White, new(default, bitmap.Size));
System\Drawing\Imaging\ImageAttributesTests.cs (3)
102graphics.FillRectangle(brush, _rectangle); 182graphics.FillRectangle(brush, _rectangle); 311graphics.FillRectangle(brush, _rectangle);
System\Drawing\TextureBrushTests.cs (1)
814targetGraphics.FillRectangle(brush, new Rectangle(0, 0, 4, 4));
System.Windows.Forms (57)
System\Windows\Forms\Control.cs (2)
8126e.Graphics.FillRectangle(Brushes.White, rectangle); 11733bufferedGraphics2.Graphics.FillRectangle(Brushes.Red, band);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
100g.FillRectangle(brush, bounds); 522e.GraphicsInternal.FillRectangle(background, bounds);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
163g.FillRectangle(SystemBrushes.Control, dropDownRect);
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
40g.FillRectangle(SystemBrushes.Window, fillRect);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16710g.FillRectangle(SystemBrushes.Control, _layout.ResizeBoxRect);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
3599graphics.FillRectangle(br, rectPadding); 3602graphics.FillRectangle(br, rectPadding); 3608graphics.FillRectangle(br, rectPadding); 3611graphics.FillRectangle(br, rectPadding); 3618graphics.FillRectangle(br, rectPadding); 3621graphics.FillRectangle(br, rectPadding);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (2)
2052g.FillRectangle(SystemBrushes.Control, dropRect); 2084g.FillRectangle(SystemBrushes.Control, dropRect);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
87pevent.Graphics.FillRectangle(SystemBrushes.Window, dropDownButtonRect);
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (1)
34g.FillRectangle(SystemBrushes.Window, fillRect);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (4)
78g.FillRectangle(SystemBrushes.Control, dropDownRect); 96g.FillRectangle(b, dropDownRect); 113g.FillRectangle(b, dropDownRect); 124g.FillRectangle(b, dropDownRect);
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (10)
148g.FillRectangle(SystemBrushes.Highlight, bounds); 189g.FillRectangle(SystemBrushes.Highlight, bounds); 268g.FillRectangle(SystemBrushes.Control, e.ConnectedArea); 314g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(1, 1, 1, 1)); 319g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.Width - 2, 1, 1, 1)); 326g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(1, bounds.Height - 2, 1, 1)); 333g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.Width - 2, bounds.Height - 2, 1, 1)); 412g.FillRectangle(SystemBrushes.Highlight, bounds); 448g.FillRectangle(SystemBrushes.Highlight, bounds); 457g.FillRectangle(SystemBrushes.Highlight, bounds);
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (4)
79g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(1, 1, 1, 1)); 84g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.Width - 2, 1, 1, 1)); 91g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(1, bounds.Height - 2, 1, 1)); 98g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.Width - 2, bounds.Height - 2, 1, 1));
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (11)
582g.FillRectangle(b, bounds); 639g.FillRectangle(b, bounds); 995g.FillRectangle(b, beginGradient); 1012g.FillRectangle(b, endGradient); 1019g.FillRectangle(b, bounds); 1092g.FillRectangle(b, bounds); 1150g.FillRectangle(b, new Rectangle(Point.Empty, control.Size)); 1164g.FillRectangle(b, gradientBounds); 1419g.FillRectangle(b, bounds); 1443g.FillRectangle(b, bounds); 1554g.FillRectangle(b, bounds);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
458g.FillRectangle(SystemBrushes.Highlight, fillRect);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2846g.FillRectangle(SystemBrushes.Highlight, bounds);
System\Windows\Forms\Form.cs (1)
4427e.GraphicsInternal.FillRectangle(SystemBrushes.AppWorkspace, ClientRectangle);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1557g.FillRectangle(textureBrush, ClientRectangle);
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
678g.FillRectangle(backBrush, rect); 712e.Graphics.FillRectangle(SystemBrushes.Control, ResizeBoxRectangle);
System\Windows\Forms\Rendering\ControlPaint.cs (5)
439g.FillRectangle(textureBrush, clipRect); 1354graphics.FillRectangle(background, offsetRectangle); 1501graphics.FillRectangle(brush, fillRect); 1551graphics.FillRectangle(t_gridBrush, area); 1880graphics.FillRectangle(frameBrush, outsideRect);
System.Windows.Forms.Design (33)
System\ComponentModel\Design\ByteViewer.cs (1)
142g.FillRectangle(
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
588g.FillRectangle(new SolidBrush(backColor), res);
System\ComponentModel\Design\DesignerActionPanel.cs (2)
478e.Graphics.FillRectangle(gradientBrush, ClientRectangle); 483e.Graphics.FillRectangle(gradientBrush, ClientRectangle);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
291g.FillRectangle(SystemBrushes.Window, editRect);
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
69e.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)
42e.Graphics.FillRectangle(SystemBrushes.ActiveCaption, e.Bounds);
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
270e.Graphics.FillRectangle(SystemBrushes.ControlDark, rc);
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
213pe.Graphics.FillRectangle(DesignerUtils.HoverBrush, Rectangle.Inflate(_bounds, -1, -1));
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
1037g.FillRectangle(brush, controlRect);
System\Windows\Forms\Design\Behavior\MiniLockedBorderGlyph.cs (1)
53pe.Graphics.FillRectangle(new SolidBrush(SystemColors.ControlText), bounds);
System\Windows\Forms\Design\ComponentTray.cs (4)
1465gr.FillRectangle(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect, SelectionBorderGlyphType.Top)); 1466gr.FillRectangle(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect, SelectionBorderGlyphType.Bottom)); 1467gr.FillRectangle(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect, SelectionBorderGlyphType.Left)); 1468gr.FillRectangle(selectionBorderBrush, DesignerUtils.GetBoundsForNoResizeSelectionType(innerRect, SelectionBorderGlyphType.Right));
System\Windows\Forms\Design\ControlDesigner.cs (3)
2271e.Graphics.FillRectangle(Brushes.White, clientRectangle); 2284e.Graphics.FillRectangle(Brushes.White, imageRect); 2291e.Graphics.FillRectangle(Brushes.White, textRect);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (3)
1008e.Graphics.FillRectangle(selectedBrush, focusRectangle); 1021e.Graphics.FillRectangle(backBrush, new Rectangle(focusRectangle.Right + 1, e.Bounds.Y, e.Bounds.Width - focusRectangle.Right - 1, e.Bounds.Height)); 1025e.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)
302graphics.FillRectangle(s_selectionBorderBrush, bounds);
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
147graphics.FillRectangle(brush, outer);
System\Windows\Forms\Design\TabOrder.cs (2)
220graphics.FillRectangle(brush, ctlOuter); 285graphics.FillRectangle(brush, convertedRectangle);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
474paintEvent.Graphics.FillRectangle(brush, Control.ClientRectangle);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (7)
1829g.FillRectangle(brush, bounds); 1836g.FillRectangle(b, _hotRegion); 1843g.FillRectangle(b, _hotRegion); 1893g.FillRectangle(brush, drawRect); 1991g.FillRectangle(brush, fillRect); 2000g.FillRectangle(brush, splitButton.ButtonBounds); 2010g.FillRectangle(brush, fillRect);