24 references to DrawRectangle
System.Drawing.Common.Tests (5)
mono\System.Drawing\GraphicsTests.cs (1)
835
g.
DrawRectangle
(pen, 5, 5, -10, -10);
System\Drawing\GraphicsTests.cs (4)
2044
AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.
DrawRectangle
(null, 0, 0, 1, 1));
2057
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawRectangle
(pen, 0, 0, 1, 1));
2071
Assert.Throws<InvalidOperationException>(() => graphics.
DrawRectangle
(pen, 0, 0, 1, 1));
2089
AssertExtensions.Throws<ArgumentException>(null, () => graphics.
DrawRectangle
(pen, 0, 0, 1, 1));
System.Windows.Forms (14)
System\Windows\Forms\Control.cs (1)
8124
e.Graphics.
DrawRectangle
(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.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 (1)
1075
g.
DrawRectangle
(SystemPens.Highlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.Height - 1);
System\Windows\Forms\Rendering\ControlPaint.cs (4)
1390
graphics.
DrawRectangle
(pen, offsetRectangle.X, offsetRectangle.Y, offsetRectangle.Width - 1, offsetRectangle.Height - 1);
1689
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);
1695
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);