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