32 references to AddRectangle
System.Drawing.Common.Tests (32)
System\Drawing\Drawing2D\CustomLineCapTests.cs (1)
22strokePath.AddRectangle(new Rectangle(0, 0, 10, 10));
System\Drawing\Drawing2D\GraphicsPathTests.cs (17)
147gp.AddRectangle(new Rectangle(1, 1, 2, 2)); 160gp.AddRectangle(new Rectangle(1, 1, 2, 2)); 180gp.AddRectangle(new Rectangle(1, 1, 2, 2)); 705gpi.AddRectangle(new Rectangle(1, 1, 2, 2)); 718gpi.AddRectangle(new Rectangle(1, 1, 1, 1)); 724gpi.AddRectangle(new Rectangle((int)endI.X, (int)endI.Y, 1, 1)); 748gpi.AddRectangle(new Rectangle(1, 2, width, height)); 978inner.AddRectangle(new Rectangle(1, 1, 2, 2)); 1089gp.AddRectangle(new Rectangle(1, 1, 2, 2)); 1272gp.AddRectangle(new Rectangle(0, 0, 100, 100)); 1662gp.AddRectangle(new Rectangle(1, 1, 2, 2)); 1729gp.AddRectangle(rectangle); 1931gp.AddRectangle(new Rectangle(1, 2, 3, 4)); 1970gp.AddRectangle(new Rectangle(200, 201, 60, 61)); 2006gp.AddRectangle(new Rectangle(200, 201, 60, 61)); 2277gp.AddRectangle(new Rectangle(10, 10, 20, 20)); 2304gp.AddRectangle(new Rectangle(10, 10, 20, 20));
System\Drawing\RegionTests.cs (14)
104graphicsPath.AddRectangle(new Rectangle(1, 2, 3, 4)); 167graphicsPath.AddRectangle(new Rectangle(1, 2, 3, 4)); 168graphicsPath.AddRectangle(new Rectangle(4, 5, 6, 7)); 194path1.AddRectangle(new Rectangle(-4194304, -4194304, 8388608, 8388608)); 198path2.AddRectangle(new Rectangle(-4194304, -4194304, 8388608, 8388608)); 199path2.AddRectangle(Rectangle.Empty); 203path3.AddRectangle(new Rectangle(-4194304, -4194304, 8388608, 8388608)); 204path3.AddRectangle(new Rectangle(1, 2, 3, 4)); 552graphics1.AddRectangle(new Rectangle(1, 2, 3, 4)); 555graphics2.AddRectangle(new Rectangle(1, 2, 3, 4)); 558graphics3.AddRectangle(new Rectangle(2, 2, 3, 4)); 561graphics4.AddRectangle(new Rectangle(1, 3, 3, 4)); 564graphics5.AddRectangle(new Rectangle(1, 2, 4, 4)); 567graphics6.AddRectangle(new Rectangle(1, 2, 3, 5));