38 references to DrawRectangle
System.Drawing.Common.Tests (5)
mono\System.Drawing\GraphicsTests.cs (1)
834
g.
DrawRectangle
(pen, 5, 5, -10, -10);
System\Drawing\GraphicsTests.cs (4)
2045
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.
DrawRectangle
(null, 0, 0, 1, 1));
2058
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawRectangle
(pen, 0, 0, 1, 1));
2072
Assert.Throws<InvalidOperationException>(() => graphics.
DrawRectangle
(pen, 0, 0, 1, 1));
2090
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawRectangle
(pen, 0, 0, 1, 1));
System.Windows.Forms (28)
System\Windows\Forms\Control.cs (1)
8226
e.Graphics.
DrawRectangle
(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
440
graphics.
DrawRectangle
(pen, r.X, r.Y, r.Width - 1, r.Height - 1);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1750
g.
DrawRectangle
(pen, outline.X, outline.Y, outline.Width - 1, outline.Height - 1);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3373
g.
DrawRectangle
(borderPen, 0, 0, sizeWindow.Width - 1, sizeWindow.Height - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (7)
144
g.
DrawRectangle
(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
181
e.Graphics.
DrawRectangle
(SystemPens.ButtonHighlight, 0, 0, e.Item.Width - 1, e.Item.Height - 1);
190
g.
DrawRectangle
(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
263
g.
DrawRectangle
(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
277
g.
DrawRectangle
(SystemPens.ButtonShadow, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
420
g.
DrawRectangle
(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
452
g.
DrawRectangle
(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
712
g.
DrawRectangle
(SystemPens.Control, 0, 0, image.Width - 1, image.Height - 1);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (10)
374
g.
DrawRectangle
(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
388
g.
DrawRectangle
(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
588
g.
DrawRectangle
(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
645
g.
DrawRectangle
(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
663
g.
DrawRectangle
(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
1062
g.
DrawRectangle
(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
1075
g.
DrawRectangle
(SystemPens.Highlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
1096
g.
DrawRectangle
(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
1199
g.
DrawRectangle
(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
1596
g.
DrawRectangle
(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
522
g.
DrawRectangle
(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
265
g.
DrawRectangle
(pen, 0, 0, Width - 1, Height - 1);
System\Windows\Forms\Rendering\ControlPaint.cs (4)
1386
graphics.
DrawRectangle
(pen, offsetRectangle.X, offsetRectangle.Y, offsetRectangle.Width - 1, offsetRectangle.Height - 1);
1685
graphics.
DrawRectangle
(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1);
1687
graphics.
DrawRectangle
(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1);
1691
graphics.
DrawRectangle
(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.Height - 1);
System.Windows.Forms.Design (5)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
599
g.
DrawRectangle
(SystemPens.ControlText, baseVar.X, baseVar.Y, baseVar.Width - 1, baseVar.Height - 1);
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
271
e.Graphics.
DrawRectangle
(SystemPens.WindowFrame, rc.X, rc.Y, rc.Width - 1, rc.Height - 1);
System\Windows\Forms\Design\DesignerUtils.cs (2)
123
g.
DrawRectangle
(new Pen(SystemColors.ControlDarkDark), 0, 0, s_boxImageSize - 1, s_boxImageSize - 1);
205
g.
DrawRectangle
(pen, i, i, imageSize.Width - (2 + i), imageSize.Height - (2 + i));
System\Windows\Forms\Design\TabOrder.cs (1)
286
graphics.
DrawRectangle
(pen, convertedRectangle.X, convertedRectangle.Y, convertedRectangle.Width - 1, convertedRectangle.Height - 1);