33 references to new
System.Drawing.Common.Tests (31)
mono\System.Drawing\GraphicsTests.cs (6)
178g.Clip = new Region(new RectangleF(10, 10, 100, 100)); 205g.Clip = new Region(new RectangleF(260, 30, 60, 80)); 222g.Clip = new Region(new RectangleF(260, 30, 60, 80)); 482g.Clip = new Region(clip); 2209g.Clip = new Region(new RectangleF(0, 0, 32, 32)); 2242g.Clip = new Region(new RectangleF(0, 0, 200, 200));
System\Drawing\RegionTests.cs (25)
74using Region region = new(rectangle); 282new Region(new RectangleF(10, 10, 100, 100)), 289new Region(new RectangleF(70, 10, 100, 100)), 296new Region(new RectangleF(40, 100, 100, 100)), 303new Region(new RectangleF(40, 10, 100, 100)), 310new Region(new RectangleF(30, 30, 80, 80)), 343using Region other = new(rect); 545yield return new object[] { new Region(new Rectangle(1, 2, 3, 4)), new Region(new RectangleF(1, 2, 3, 4)), true }; 779using Region other = new(rect); 791using Region region = new(new RectangleF(20, 20, 20, 20)); 792using Region union = new(new RectangleF(20, 80, 20, 10)); 1096new Region(new RectangleF(260, 30, 60, 80)), 1103new Region(new RectangleF(20, 330, 40, 50)), 1122using Region rectangleRegion = new(rect); 1684using Region other = new(rect); 1807using Region region = new(new RectangleF(1, 2, 3, 4)); 1816using Region region = new(new RectangleF(1, 2, 3, 4)); 1892using Region region = new(new RectangleF(1, 2, 3, 4)); 1915using Region region = new(new RectangleF(1, 2, 3, 4)); 1953using Region region = new(new RectangleF(1, 2, 3, 4)); 1975new Region(new RectangleF(500, 30, 60, 80)), 1982new Region(new RectangleF(500, 30, 60, 80)), 1989new Region(new RectangleF(0, 0, 0, 0)), 2016new Region(new RectangleF(380, 30, 60, 80)), 2036using Region other = new(rect);
System.Windows.Forms (2)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
1083using Region region = new(focusRectangle); 1278g.Clip = IsLabelFilledByOneLink() ? new Region(focusRectangle) : link.VisualRegion;