47 references to Union
System.Windows.Forms (38)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (1)
287
? Rectangle.
Union
(textAdjusted, layout.ImageBounds)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
2709
rectTmp = Rectangle.
Union
(rectTmp, _layout.ColumnHeaders);
3816
Invalidate(Rectangle.
Union
(_layout.Data, _layout.ColumnHeaders));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (24)
2431
Rectangle clip = Rectangle.
Union
(_layout.ColumnHeaders, _layout.Data);
2434
clip = Rectangle.
Union
(_layout.TopLeftHeader, clip);
2537
Rectangle clip = Rectangle.
Union
(_layout.ColumnHeaders, _layout.Data);
2736
Rectangle clip = Rectangle.
Union
(_layout.RowHeaders, _layout.Data);
2739
clip = Rectangle.
Union
(_layout.TopLeftHeader, clip);
2771
Rectangle clip = Rectangle.
Union
(_layout.RowHeaders, _layout.Data);
2970
inside = Rectangle.
Union
(_layout.TopLeftHeader, inside);
6068
Invalidate(Rectangle.
Union
(_layout.TopLeftHeader, _layout.ColumnHeaders));
8578
rectScrollingArea = Rectangle.
Union
(rectScrollingArea, _layout.RowHeaders);
8670
rectScrollingArea = Rectangle.
Union
(rectScrollingArea, _layout.ColumnHeaders);
10489
Invalidate(Rectangle.
Union
(_layout.TopLeftHeader, _layout.ColumnHeaders));
13447
Invalidate(Rectangle.
Union
(_layout.ColumnHeaders, _layout.Data));
13910
Invalidate(Rectangle.
Union
(_layout.TopLeftHeader, _layout.ColumnHeaders));
14490
rightArea = Rectangle.
Union
(rightArea, _layout.ColumnHeaders);
16683
clipRect = Rectangle.
Union
(clipRect, CalcRowResizeFeedbackRect(_currentRowSplitBar));
16687
clipRect = Rectangle.
Union
(clipRect, CalcColResizeFeedbackRect(_currentColSplitBar));
16740
gridRect = Rectangle.
Union
(gridRect, _layout.RowHeaders);
16754
gridRect = Rectangle.
Union
(gridRect, _layout.ColumnHeaders);
18184
Invalidate(Rectangle.
Union
(_layout.TopLeftHeader, _layout.RowHeaders));
25863
Invalidate(Rectangle.
Union
(_layout.TopLeftHeader, _layout.ColumnHeaders));
26331
rowsRect = Rectangle.
Union
(rowsRect, _layout.RowHeaders);
28960
Invalidate(Rectangle.
Union
(rectUpper, rectLower));
29002
bottomArea = Rectangle.
Union
(bottomArea, _layout.RowHeaders);
29077
bottomArea = Rectangle.
Union
(bottomArea, _layout.RowHeaders);
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
37
Rectangle rect = Rectangle.
Union
(_ownerDataGridView._layout.ColumnHeaders, _ownerDataGridView._layout.TopLeftHeader);
System\Windows\Forms\Controls\ListView\ListView.cs (3)
5048
rectInvalid = Rectangle.
Union
(rectInvalid, Items[index].Bounds);
5053
rectInvalid = Rectangle.
Union
(rectInvalid, Items[startIndex - 1].Bounds);
5064
rectInvalid = Rectangle.
Union
(rectInvalid, Items[endIndex + 1].Bounds);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (4)
302
: Rectangle.
Union
(alignedRightItems, new Rectangle(x, y, itemSize.Width, itemSize.Height));
315
: Rectangle.
Union
(alignedLeftItems, new Rectangle(x, y, itemSize.Width, itemSize.Height));
439
: Rectangle.
Union
(alignedRightItems, new Rectangle(x, y, itemSize.Width, itemSize.Height));
447
: Rectangle.
Union
(alignedLeftItems, new Rectangle(x, y, itemSize.Width, itemSize.Height));
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
307
_windowBounds = _windowBounds.IsEmpty ? iconBounds : Rectangle.
Union
(_windowBounds, iconBounds);
System\Windows\Forms\Layout\LayoutUtils.cs (2)
533
Debug.Assert(Rectangle.
Union
(region1, region2) == bounds,
567
Debug.Assert(Rectangle.
Union
(region1, region2) == bounds, "region1 and region2 do not add up to bounds.");
System.Windows.Forms.Design (9)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
793
Rectangle unionRectangle = Rectangle.
Union
(newImageRect, previousImageRect);
952
_dragImageRect = Rectangle.
Union
(_dragImageRect, controlRect);
System\Windows\Forms\Design\Behavior\SelectionManager.cs (3)
151
: Rectangle.
Union
(currentSelectionBounds, bodyGlyph.Bounds);
163
_currentSelectionBounds[_curCompIndex] = Rectangle.
Union
(_currentSelectionBounds[_curCompIndex], glyph.Bounds);
438
toUpdate = Rectangle.
Union
(toUpdate, _currentSelectionBounds[i]);
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
100
bounds = bounds.IsEmpty ? childControl.Bounds : Rectangle.
Union
(bounds, childControl.Bounds);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1248
boundsInAdornerWindow = Rectangle.
Union
(origBoundsInAdornerWindow, boundsInAdornerWindow);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
1627
Rectangle boundstoInvalidate = Rectangle.
Union
(hostingDropDownBounds, itemDropDownBounds);
1941
_boundsToInvalidateOnRemove = Rectangle.
Union
(_boundsToInvalidateOnRemove, dropDownItem.DropDown.Bounds);