20 references to Union
System.Drawing.Common.Tests (3)
System\Drawing\RegionTests.cs (3)
358
other.
Union
(new Rectangle(60, 60, 30, 10));
1733
region.
Union
(new Rectangle((int)rect.X, (int)rect.Y, (int)rect.Width, (int)rect.Height));
1799
AssertExtensions.Throws<ArgumentException>(null, () => disposedRegion.
Union
(default(Rectangle)));
System.Windows.Forms (9)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1818
region.
Union
(displayedItems[i].Bounds);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (7)
883
parentRegionToPaint.
Union
(topLeftParentHorizontalPixels);
884
parentRegionToPaint.
Union
(bottomLeftParentHorizontalPixels);
885
parentRegionToPaint.
Union
(bottomLeftParentVerticalPixels);
886
parentRegionToPaint.
Union
(bottomRightHorizontalPixels);
887
parentRegionToPaint.
Union
(bottomRightVerticalPixels);
888
parentRegionToPaint.
Union
(topRightHorizontalPixels);
889
parentRegionToPaint.
Union
(topRightVerticalPixels);
System\Windows\Forms\ErrorProvider\ErrorProvider.IconRegion.cs (1)
66
_region.
Union
(new Rectangle(x, y, 1, 1));
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
707
_dragImageRegion.
Union
(controlRect);
959
_dragImageRegion.
Union
(controlRect);
System\Windows\Forms\Design\Behavior\SelectionManager.cs (5)
353
toRefresh.
Union
(large);
354
toRefresh.
Union
(small);
364
toRefresh.
Union
(large);
373
toRefresh.
Union
(smaller[k]);
385
toRefresh.
Union
(currentSelectionBounds[i]);
System\Windows\Forms\Design\TabOrder.cs (1)
268
_region?.
Union
(convertedRectangle);