63 references to DrawRectangle
System.Drawing.Common.Tests (13)
mono\System.Drawing\GraphicsTests.cs (5)
837g.DrawRectangle(pen, new Rectangle(15, 0, -10, 5)); 1219g.DrawRectangle(pen, rect); 1223g.DrawRectangle(Pens.Blue, rect); 1382g.DrawRectangle(pen, rect); 1386g.DrawRectangle(Pens.Blue, rect);
System\Drawing\GraphicsTests.cs (4)
2043AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, new Rectangle(0, 0, 1, 1))); 2056AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawRectangle(pen, new Rectangle(0, 0, 1, 1))); 2070Assert.Throws<InvalidOperationException>(() => graphics.DrawRectangle(pen, new Rectangle(0, 0, 1, 1))); 2088AssertExtensions.Throws<ArgumentException>(null, () => graphics.DrawRectangle(pen, new Rectangle(0, 0, 1, 1)));
System\Drawing\Imaging\ImageAttributesTests.cs (2)
186graphics.DrawRectangle(pen, _rectangle); 315graphics.DrawRectangle(pen, _rectangle);
System\Drawing\RegionTests.cs (2)
482graphics.DrawRectangle(Pens.Green, rect1); 483graphics.DrawRectangle(Pens.Red, rect2);
System.Windows.Forms (28)
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (2)
93g.DrawRectangle( 99g.DrawRectangle(
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (3)
1987g.DrawRectangle(SystemPens.ControlLightLight, new Rectangle(valBounds.X, valBounds.Y, valBounds.Width - 1, valBounds.Height - 1)); 2206g.DrawRectangle(SystemPens.ControlDark, dropRect); 2296g.DrawRectangle(SystemPens.ControlDark, valBounds);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2331g.DrawRectangle(SystemPens.Window, rect);
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (1)
107Graphics.DrawRectangle(SystemPens.ControlDarkDark, r);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6899g.DrawRectangle(SystemPens.Window, rect);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1858g.DrawRectangle(SystemPens.WindowText, rectPaint);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (2)
60graphics.DrawRectangle(focusPen1, bounds); 61graphics.DrawRectangle(focusPen2, bounds);
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
2914g.DrawRectangle(SystemPens.Window, rect);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
830g.DrawRectangle(SystemPens.Window, rect);
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (5)
100e.Graphics.DrawRectangle(SystemPens.ButtonHighlight, new Rectangle(0, 0, e.Item.Width - 1, e.Item.Height - 1)); 149g.DrawRectangle(SystemPens.HighlightText, dropDownRect); 341g.DrawRectangle(SystemPens.ButtonShadow, bounds); 479graphics.DrawRectangle(focusPen1, bounds); 480graphics.DrawRectangle(focusPen2, bounds);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
251e.Graphics.DrawRectangle(SystemPens.ControlDark, bounds);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
3155g.DrawRectangle(SystemPens.Window, rect);
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
686g.DrawRectangle(Pens.Black, box); 700g.DrawRectangle(Pens.Black, box);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
1144e.Graphics.DrawRectangle(SystemPens.ControlDark, rect);
System\Windows\Forms\Rendering\ControlPaint.cs (5)
1419graphics.DrawRectangle( 1504graphics.DrawRectangle(pen, rectangle); 2364g.DrawRectangle(SystemPens.ControlDark, bound); 2375g.DrawRectangle(SystemPens.Control, bound); 2395g.DrawRectangle(SystemPens.Control, bound);
System.Windows.Forms.Design (22)
System\ComponentModel\Design\ByteViewer.cs (1)
152g.DrawRectangle(
System\ComponentModel\Design\DesignerActionPanel.cs (1)
488e.Graphics.DrawRectangle(borderPen, new Rectangle(0, 0, Width - 1, Height - 1));
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
297swatchGraphics.DrawRectangle(SystemPens.ControlDark, new Rectangle(0, 0, width - 1, height - 1));
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
292g.DrawRectangle(SystemPens.ControlDark, editRect);
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
276graphics.DrawRectangle(SystemPens.WindowText, new Rectangle(die.Bounds.X + 2, die.Bounds.Y + 2, 22 - 1, die.Bounds.Height - 4 - 1));
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
70e.Graphics.DrawRectangle(SystemPens.WindowText, new Rectangle(e.Bounds.X + 2, e.Bounds.Y + 2, 32 - 1, e.Bounds.Height - 4 - 1));
System\Drawing\Design\ImageEditor.cs (1)
179e.Graphics.DrawRectangle(SystemPens.WindowFrame, r);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2282e.Graphics.DrawRectangle(pen, borderRectangle);
System\Windows\Forms\Design\PanelDesigner.cs (1)
42graphics.DrawRectangle(pen, rc);
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
55graphics.DrawRectangle(pen, rc);
System\Windows\Forms\Design\SplitterDesigner.cs (1)
35graphics.DrawRectangle(pen, rectangle);
System\Windows\Forms\Design\SplitterPanelDesigner.cs (2)
159graphics.DrawRectangle(pen, rectangle); 174graphics.DrawRectangle(pen, rectangle);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
928g.DrawRectangle(p, bounds);
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
245graphics.DrawRectangle(pen, rc);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (7)
1874g.DrawRectangle(selectborderPen, drawRect); 1912g.DrawRectangle(borderPen, drawRect); 1932g.DrawRectangle(borderPen, drawRect); 1942g.DrawRectangle(borderPen, drawRect); 1951g.DrawRectangle(borderPen, drawRect); 1957g.DrawRectangle(borderPen, drawRect); 2033g.DrawRectangle(selectborderPen, drawRect);