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