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)
2702
rectTmp = Rectangle.
Union
(rectTmp, _layout.ColumnHeaders);
3809
Invalidate(Rectangle.
Union
(_layout.Data, _layout.ColumnHeaders));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (24)
2432
Rectangle clip = Rectangle.
Union
(_layout.ColumnHeaders, _layout.Data);
2435
clip = Rectangle.
Union
(_layout.TopLeftHeader, clip);
2538
Rectangle clip = Rectangle.
Union
(_layout.ColumnHeaders, _layout.Data);
2740
Rectangle clip = Rectangle.
Union
(_layout.RowHeaders, _layout.Data);
2743
clip = Rectangle.
Union
(_layout.TopLeftHeader, clip);
2775
Rectangle clip = Rectangle.
Union
(_layout.RowHeaders, _layout.Data);
2974
inside = Rectangle.
Union
(_layout.TopLeftHeader, inside);
6074
Invalidate(Rectangle.
Union
(_layout.TopLeftHeader, _layout.ColumnHeaders));
8584
rectScrollingArea = Rectangle.
Union
(rectScrollingArea, _layout.RowHeaders);
8676
rectScrollingArea = Rectangle.
Union
(rectScrollingArea, _layout.ColumnHeaders);
10495
Invalidate(Rectangle.
Union
(_layout.TopLeftHeader, _layout.ColumnHeaders));
13453
Invalidate(Rectangle.
Union
(_layout.ColumnHeaders, _layout.Data));
13916
Invalidate(Rectangle.
Union
(_layout.TopLeftHeader, _layout.ColumnHeaders));
14496
rightArea = Rectangle.
Union
(rightArea, _layout.ColumnHeaders);
16692
clipRect = Rectangle.
Union
(clipRect, CalcRowResizeFeedbackRect(_currentRowSplitBar));
16696
clipRect = Rectangle.
Union
(clipRect, CalcColResizeFeedbackRect(_currentColSplitBar));
16749
gridRect = Rectangle.
Union
(gridRect, _layout.RowHeaders);
16763
gridRect = Rectangle.
Union
(gridRect, _layout.ColumnHeaders);
18193
Invalidate(Rectangle.
Union
(_layout.TopLeftHeader, _layout.RowHeaders));
25875
Invalidate(Rectangle.
Union
(_layout.TopLeftHeader, _layout.ColumnHeaders));
26343
rowsRect = Rectangle.
Union
(rowsRect, _layout.RowHeaders);
28971
Invalidate(Rectangle.
Union
(rectUpper, rectLower));
29013
bottomArea = Rectangle.
Union
(bottomArea, _layout.RowHeaders);
29088
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)
5002
rectInvalid = Rectangle.
Union
(rectInvalid, Items[index].Bounds);
5007
rectInvalid = Rectangle.
Union
(rectInvalid, Items[startIndex - 1].Bounds);
5018
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)
313
_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)
799
Rectangle unionRectangle = Rectangle.
Union
(newImageRect, previousImageRect);
958
_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);
441
toUpdate = Rectangle.
Union
(toUpdate, _currentSelectionBounds[i]);
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
104
bounds = bounds.IsEmpty ? childControl.Bounds : Rectangle.
Union
(bounds, childControl.Bounds);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1266
boundsInAdornerWindow = Rectangle.
Union
(origBoundsInAdornerWindow, boundsInAdornerWindow);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
1657
Rectangle boundstoInvalidate = Rectangle.
Union
(hostingDropDownBounds, itemDropDownBounds);
1974
_boundsToInvalidateOnRemove = Rectangle.
Union
(_boundsToInvalidateOnRemove, dropDownItem.DropDown.Bounds);