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