175 references to new
System.Drawing.Common.Tests (109)
mono\System.Drawing\GraphicsTests.cs (20)
152
g.Clip = new
Region
(new Rectangle(50, 40, 210, 220));
243
g.SetClip(new
Region
(new Rectangle(50, 40, 210, 220)), CombineMode.Replace);
292
g.Clip = new
Region
(new Rectangle(0, 0, 100, 100));
305
g.Clip = new
Region
(new Rectangle(1, 2, 20, 25));
361
Graphics.Clip = new
Region
(new Rectangle(0, 0, width, height));
456
g.Clip = new
Region
(new Rectangle(0, 0, 8, 8));
466
g.Clip = new
Region
(new Rectangle(0, 0, 8, 8));
497
g.Clip = new
Region
(new Rectangle(0, 0, 8, 8));
513
g.Clip = new
Region
(new Rectangle(0, 0, 8, 8));
528
g.Clip = new
Region
(new Rectangle(0, 0, 8, 8));
544
g.Clip = new
Region
(new Rectangle(0, 0, 8, 8));
563
g.Clip = new
Region
(new Rectangle(0, 0, 8, 8));
599
g.Clip = new
Region
(new Rectangle(0, 0, 8, 8));
622
g.Clip = new
Region
(new Rectangle(0, 0, 8, 8));
643
g.Clip = new
Region
(new Rectangle(0, 0, 8, 8));
955
g.Clip = new
Region
(new Rectangle(10, 10, 10, 10));
988
g.Clip = new
Region
(new Rectangle(10, 10, 10, 10));
1022
g.Clip = new
Region
(new Rectangle(10, 10, 10, 10));
1103
g.Clip = new
Region
(new Rectangle(10, 10, 10, 10));
1194
g.Clip = new
Region
(rect);
System\Drawing\Graphics_GetContextTests.Core.cs (4)
29
using Region initialClip =
new
(new Rectangle(1, 2, 9, 10));
62
using Region initialClip =
new
(new Rectangle(1, 2, 9, 10));
81
using Region initialClip =
new
(new Rectangle(1, 2, 9, 10));
100
using Region initialClip =
new
(new Rectangle(1, 2, 9, 10));
System\Drawing\Graphics_GetContextTests.cs (5)
33
using Region initialClip =
new
(new Rectangle(1, 2, 9, 10));
65
using Region initialClip =
new
(new Rectangle(1, 2, 9, 10));
83
using Region initialClip =
new
(new Rectangle(1, 2, 9, 10));
101
using Region initialClip =
new
(new Rectangle(1, 2, 9, 10));
122
using Region initialClip =
new
(new Rectangle(1, 2, 9, 10));
System\Drawing\RegionTests.cs (80)
58
using Region region =
new
(rectangle);
83
yield return new object[] { new
Region
(new Rectangle(0, 0, 0, 0)) };
84
yield return new object[] { new
Region
(new Rectangle(1, 2, 3, 4)) };
113
using Region region =
new
(new Rectangle(1, 2, 3, 4));
355
using Region region =
new
(new Rectangle(20, 20, 20, 20));
356
using Region other =
new
(new Rectangle(20, 80, 20, 10));
388
using Region region =
new
(new Rectangle(1, 2, 3, 4));
479
using Region region1 =
new
(rect1);
480
using Region region2 =
new
(rect2);
538
yield return new object[] { new Region(), new
Region
(new Rectangle(1, 2, 3, 4)), false };
541
yield return new object[] { Empty(), new
Region
(new Rectangle(0, 0, 0, 0)), true };
542
yield return new object[] { Empty(), new
Region
(new Rectangle(1, 2, 3, 3)), false };
544
yield return new object[] { new
Region
(new Rectangle(1, 2, 3, 4)), new
Region
(new Rectangle(1, 2, 3, 4)), true };
545
yield return new object[] { new
Region
(new Rectangle(1, 2, 3, 4)), new Region(new RectangleF(1, 2, 3, 4)), true };
546
yield return new object[] { new
Region
(new Rectangle(1, 2, 3, 4)), new
Region
(new Rectangle(2, 2, 3, 4)), false };
547
yield return new object[] { new
Region
(new Rectangle(1, 2, 3, 4)), new
Region
(new Rectangle(1, 3, 3, 4)), false };
548
yield return new object[] { new
Region
(new Rectangle(1, 2, 3, 4)), new
Region
(new Rectangle(1, 2, 4, 4)), false };
549
yield return new object[] { new
Region
(new Rectangle(1, 2, 3, 4)), new
Region
(new Rectangle(1, 2, 3, 5)), false };
626
new
Region
(new Rectangle(500, 30, 60, 80)),
633
new
Region
(new Rectangle(500, 30, 60, 80)),
661
new
Region
(new Rectangle(10, 10, 100, 100)),
674
new
Region
(new Rectangle(70, 10, 100, 100)),
687
new
Region
(new Rectangle(40, 100, 100, 100)),
700
new
Region
(new Rectangle(40, 10, 100, 100)),
713
new
Region
(new Rectangle(30, 30, 80, 80)),
730
new
Region
(new Rectangle(50, 100, 100, 100)),
738
new
Region
(new Rectangle(70, 60, 100, 70)),
746
new
Region
(new Rectangle(70, 60, 100, 70)),
754
new
Region
(new Rectangle(20, 20, 100, 100)),
761
new
Region
(new Rectangle(130, 30, 60, 80)),
802
using Region region =
new
(new Rectangle(1, 2, 3, 4));
911
using Region region =
new
(new Rectangle(1, 2, 3, 4));
936
using Region region =
new
(new Rectangle(1, 2, 3, 4));
1010
using Region region =
new
(new Rectangle(1, 2, 3, 4));
1062
new
Region
(new Rectangle(500, 30, 60, 80)),
1068
new
Region
(new Rectangle(0, 0, 0, 0)),
1075
new
Region
(new Rectangle(500, 30, 60, 80)),
1134
using Region region =
new
(new Rectangle(1, 2, 3, 4));
1310
yield return new object[] { new
Region
(new Rectangle(0, 0, 10, 10)), new Rectangle(0, 0, 0, 1), false };
1311
yield return new object[] { new
Region
(new Rectangle(500, 30, 60, 80)), new Rectangle(500, 30, 60, 80), true };
1312
yield return new object[] { new
Region
(new Rectangle(500, 30, 60, 80)), new Rectangle(520, 40, 60, 80), true };
1314
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Rectangle(1, 1, 2, 1), true };
1315
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Rectangle(1, 1, 2, 2), true };
1316
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Rectangle(1, 1, 10, 10), true };
1317
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Rectangle(1, 1, 1, 1), true };
1318
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Rectangle(2, 2, 1, 1), false };
1319
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Rectangle(0, 0, 1, 1), false };
1320
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Rectangle(3, 3, 1, 1), false };
1362
yield return new object[] { new
Region
(new Rectangle(500, 30, 60, 80)), new Point(500, 29), false };
1363
yield return new object[] { new
Region
(new Rectangle(500, 30, 60, 80)), new Point(500, 30), true };
1365
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Point(0, 1), false };
1366
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Point(1, 0), false };
1367
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Point(2, 0), false };
1368
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Point(3, 0), false };
1369
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Point(1, 1), true };
1370
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Point(2, 1), true };
1371
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Point(3, 1), false };
1372
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Point(0, 2), false };
1373
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Point(2, 2), false };
1374
yield return new object[] { new
Region
(new Rectangle(1, 1, 2, 1)), new Point(3, 2), false };
1490
new
Region
(new Rectangle(500, 30, 60, 80)),
1497
new
Region
(new Rectangle(500, 30, 60, 80)),
1504
new
Region
(new Rectangle(500, 30, 60, 80)),
1511
new
Region
(new Rectangle(500, 30, 60, 80)),
1538
new
Region
(new Rectangle(20, 20, 20, 20)),
1554
new
Region
(new Rectangle(20, 180, 40, 50)),
1572
new
Region
(new Rectangle(20, 330, 40, 50)),
1592
new
Region
(new Rectangle(10, 20, 50, 50)),
1609
new
Region
(new Rectangle(10, 10, 100, 100)),
1622
new
Region
(new Rectangle(70, 10, 100, 100)),
1635
new
Region
(new Rectangle(40, 100, 100, 100)),
1647
new
Region
(new Rectangle(40, 10, 100, 100)),
1659
new
Region
(new Rectangle(30, 30, 80, 80)),
1696
using Region region =
new
(new Rectangle(1, 2, 3, 4));
2048
using Region region =
new
(new Rectangle(1, 2, 3, 4));
System.Windows.Forms (7)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
5435
using (Region region =
new
(scroll))
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
588
Region visualRegion =
new
(visualRectangle);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1819
region ??= new
Region
(regionRect);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (1)
29
Region region =
new
(bounds);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
882
Region parentRegionToPaint =
new
(topLeftParentHorizontalPixels);
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
315
using Region windowRegion =
new
(new Rectangle(0, 0, 0, 0));
System\Windows\Forms\ErrorProvider\ErrorProvider.IconRegion.cs (1)
40
_region = new
Region
(new Rectangle(0, 0, 0, 0));
System.Windows.Forms.Design (27)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
139
result.Clip = new
Region
(_adornerWindow.DesignerFrameDisplayRectangle);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (3)
703
_dragImageRegion = new
Region
(controlRect);
800
Region invalidRegion =
new
(unionRectangle);
954
_dragImageRegion = new
Region
(controlRect);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
386
using (Region newRegion =
new
(borderRect))
853
using Region newRegion =
new
(newBorderRect);
862
using Region oldRegion =
new
(oldBorderRect);
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
316
Region toRefresh =
new
(Rectangle.Empty);
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (1)
332
using Region invalidRegion =
new
(_lastRectangle);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2123
using Region nonClient =
new
(controlScreenBounds);
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
1789
using (Region newRegion =
new
(frameRect))
1981
using Region newRegion =
new
(frameRect);
1998
using Region oldRegion =
new
(oldFrameRect);
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (2)
73
_region =
new
(rect);
77
_region =
new
(Rectangle.Empty);
System\Windows\Forms\Design\SelectionUIService.cs (1)
830
Region region =
new
(new Rectangle(0, 0, 0, 0));
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (2)
333
_region =
new
(_outerRect);
338
_region =
new
(Rectangle.Empty);
System\Windows\Forms\Design\TabOrder.cs (2)
197
_region = new
Region
(new Rectangle(0, 0, 0, 0));
208
_region = new
Region
(ctlOuter);
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (3)
462
invalidateRegion = new
Region
(invalidateBounds);
468
itemRegion = new
Region
(invalidateBounds);
497
invalidateRegion = new
Region
(invalidateBounds);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
82
Region rgn =
new
(bounds);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
1183
using Region invalidatingRegion =
new
(_dropDownSizeToInvalidate);
1920
using Region regionToInvalidate =
new
(_boundsToInvalidateOnRemove);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
839
Region rgn =
new
(invalidateBounds);
System.Windows.Forms.Primitives.Tests (3)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (2)
19
using Region r =
new
(clipRectangle);
102
using Region r =
new
(clipRectangle);
System\Windows\Forms\DeviceContextScopeTests.cs (1)
41
using Region region =
new
(new Rectangle(1, 1, 2, 3));
System.Windows.Forms.Tests (29)
System\Windows\Forms\ControlTests.Handlers.cs (2)
2183
yield return new object[] { testData, new
Region
(new Rectangle(1, 2, 3, 4)) };
2335
yield return new object[] { testData, new
Region
(new Rectangle(1, 2, 3, 4)) };
System\Windows\Forms\ControlTests.Methods.cs (23)
451
yield return new object[] { new
Region
(new Rectangle(1, 2, 3, 4)) };
638
yield return new object[] { new
Region
(new Rectangle(1, 2, 3, 4)) };
860
yield return new object[] { new
Region
(new Rectangle(1, 2, 3, 4)) };
3509
yield return new object[] { opaque, new
Region
(new Rectangle(0, 0, 10, 20)) };
3510
yield return new object[] { opaque, new
Region
(new Rectangle(1, 2, 3, 4)) };
3511
yield return new object[] { opaque, new
Region
(new Rectangle(5, 10, 5, 10)) };
3512
yield return new object[] { opaque, new
Region
(new Rectangle(100, 200, 300, 400)) };
3513
yield return new object[] { opaque, new
Region
(new Rectangle(-100, -200, -300, -400)) };
3541
yield return new object[] { opaque, new
Region
(new Rectangle(0, 0, 10, 20)), new Rectangle(0, 0, 10, 20) };
3542
yield return new object[] { opaque, new
Region
(new Rectangle(1, 2, 3, 4)), new Rectangle(1, 2, 3, 4) };
3543
yield return new object[] { opaque, new
Region
(new Rectangle(5, 10, 5, 10)), new Rectangle(5, 10, 5, 10) };
3544
yield return new object[] { opaque, new
Region
(new Rectangle(100, 200, 300, 400)), new Rectangle(100, 200, 300, 400) };
3545
yield return new object[] { opaque, new
Region
(new Rectangle(-100, -200, -300, -400)), new Rectangle(-100, -200, -300, -400) };
3648
yield return new object[] { opaque, new
Region
(new Rectangle(0, 0, 10, 20)), invalidateChildren };
3649
yield return new object[] { opaque, new
Region
(new Rectangle(1, 2, 3, 4)), invalidateChildren };
3650
yield return new object[] { opaque, new
Region
(new Rectangle(5, 10, 5, 10)), invalidateChildren };
3651
yield return new object[] { opaque, new
Region
(new Rectangle(100, 200, 300, 400)), invalidateChildren };
3652
yield return new object[] { opaque, new
Region
(new Rectangle(-100, -200, -300, -400)), invalidateChildren };
3683
yield return new object[] { opaque, new
Region
(new Rectangle(0, 0, 10, 20)), invalidateChildren, new Rectangle(0, 0, 10, 20) };
3684
yield return new object[] { opaque, new
Region
(new Rectangle(1, 2, 3, 4)), invalidateChildren, new Rectangle(1, 2, 3, 4) };
3685
yield return new object[] { opaque, new
Region
(new Rectangle(5, 10, 5, 10)), invalidateChildren, new Rectangle(5, 10, 5, 10) };
3686
yield return new object[] { opaque, new
Region
(new Rectangle(100, 200, 300, 400)), invalidateChildren, new Rectangle(100, 200, 300, 400) };
3687
yield return new object[] { opaque, new
Region
(new Rectangle(-100, -200, -300, -400)), invalidateChildren, new Rectangle(-100, -200, -300, -400) };
System\Windows\Forms\ControlTests.Properties.cs (1)
9871
yield return new object[] { new
Region
(new Rectangle(1, 2, 3, 4)) };
System\Windows\Forms\TextRendererTests.cs (2)
759
using Region region =
new
(new Rectangle(1, 2, 6, 8));
807
using Region region =
new
(new Rectangle(1, 2, 6, 8));
System\Windows\Forms\ToolStripDropDownTests.cs (1)
2232
yield return new object[] { new
Region
(new Rectangle(1, 2, 3, 4)) };