15 references to Intersect
System.Drawing.Common.Tests (9)
System\Drawing\RegionTests.cs (9)
373
region.
Intersect
(new Rectangle(5, 5, -10, -10));
1049
clipRegion.
Intersect
(smaller);
1170
region.
Intersect
(new Rectangle((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height));
1183
region.
Intersect
(new Rectangle(5, 5, -10, -10));
1260
AssertExtensions.Throws<ArgumentException>(null, () => disposedRegion.
Intersect
(default(Rectangle)));
1853
region.
Intersect
(new Rectangle(-10, -10, 20, 20));
1865
region.
Intersect
(new Rectangle(-10, -10, 20, 20));
1903
region.
Intersect
(new Rectangle(-10, -10, 20, 20));
1926
region.
Intersect
(new Rectangle(-10, -10, 20, 20));
System.Windows.Forms (3)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
387
newClip.
Intersect
(bounds);
391
newClip.
Intersect
(imageBounds);
System\Windows\Forms\ErrorProvider\ErrorProvider.IconRegion.cs (1)
72
_region.
Intersect
(new Rectangle(0, 0, size.Width, size.Height));
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DesignerFrame.cs (1)
487
intersectionRegion.
Intersect
(overlayControlScreenBounds);
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
346
_region.
Intersect
(_selUIsvc.RectangleToClient(handlerClip));
System\Windows\Forms\Design\TabOrder.cs (1)
297
_region?.
Intersect
(GetConvertedBounds(rootControl));