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)
2709rectTmp = Rectangle.Union(rectTmp, _layout.ColumnHeaders); 3816Invalidate(Rectangle.Union(_layout.Data, _layout.ColumnHeaders));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (24)
2431Rectangle clip = Rectangle.Union(_layout.ColumnHeaders, _layout.Data); 2434clip = Rectangle.Union(_layout.TopLeftHeader, clip); 2537Rectangle clip = Rectangle.Union(_layout.ColumnHeaders, _layout.Data); 2736Rectangle clip = Rectangle.Union(_layout.RowHeaders, _layout.Data); 2739clip = Rectangle.Union(_layout.TopLeftHeader, clip); 2771Rectangle clip = Rectangle.Union(_layout.RowHeaders, _layout.Data); 2970inside = Rectangle.Union(_layout.TopLeftHeader, inside); 6068Invalidate(Rectangle.Union(_layout.TopLeftHeader, _layout.ColumnHeaders)); 8578rectScrollingArea = Rectangle.Union(rectScrollingArea, _layout.RowHeaders); 8670rectScrollingArea = Rectangle.Union(rectScrollingArea, _layout.ColumnHeaders); 10489Invalidate(Rectangle.Union(_layout.TopLeftHeader, _layout.ColumnHeaders)); 13447Invalidate(Rectangle.Union(_layout.ColumnHeaders, _layout.Data)); 13910Invalidate(Rectangle.Union(_layout.TopLeftHeader, _layout.ColumnHeaders)); 14490rightArea = Rectangle.Union(rightArea, _layout.ColumnHeaders); 16683clipRect = Rectangle.Union(clipRect, CalcRowResizeFeedbackRect(_currentRowSplitBar)); 16687clipRect = Rectangle.Union(clipRect, CalcColResizeFeedbackRect(_currentColSplitBar)); 16740gridRect = Rectangle.Union(gridRect, _layout.RowHeaders); 16754gridRect = Rectangle.Union(gridRect, _layout.ColumnHeaders); 18184Invalidate(Rectangle.Union(_layout.TopLeftHeader, _layout.RowHeaders)); 25863Invalidate(Rectangle.Union(_layout.TopLeftHeader, _layout.ColumnHeaders)); 26331rowsRect = Rectangle.Union(rowsRect, _layout.RowHeaders); 28960Invalidate(Rectangle.Union(rectUpper, rectLower)); 29002bottomArea = Rectangle.Union(bottomArea, _layout.RowHeaders); 29077bottomArea = 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)
5048rectInvalid = Rectangle.Union(rectInvalid, Items[index].Bounds); 5053rectInvalid = Rectangle.Union(rectInvalid, Items[startIndex - 1].Bounds); 5064rectInvalid = 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)
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)
793Rectangle 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); 438toUpdate = Rectangle.Union(toUpdate, _currentSelectionBounds[i]);
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (1)
100bounds = bounds.IsEmpty ? childControl.Bounds : Rectangle.Union(bounds, childControl.Bounds);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1248boundsInAdornerWindow = Rectangle.Union(origBoundsInAdornerWindow, boundsInAdornerWindow);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
1627Rectangle boundstoInvalidate = Rectangle.Union(hostingDropDownBounds, itemDropDownBounds); 1941_boundsToInvalidateOnRemove = Rectangle.Union(_boundsToInvalidateOnRemove, dropDownItem.DropDown.Bounds);