56 references to Union
System.Windows.Forms (50)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
1133layout.focus = Rectangle.Union(textAdjusted, layout.imageBounds);
winforms\Managed\System\WinForms\DataGrid.cs (12)
2261scroll = Rectangle.Union(scroll, layout.ColumnHeaders); 4424gridRect = Rectangle.Union(gridRect, layout.RowHeaders); 4426gridRect = Rectangle.Union(gridRect, layout.ColumnHeaders); 4840Invalidate(Rectangle.Union(layout.Data, layout.ColumnHeaders)); 4847rightArea = Rectangle.Union(rightArea, layout.ColumnHeaders); 4889Rectangle clip = Rectangle.Union(layout.ColumnHeaders, layout.Data); 4988Invalidate(Rectangle.Union(this.layout.Data, this.layout.ColumnHeaders)); 4991Rectangle rightArea = Rectangle.Union(layout.ColumnHeaders, layout.Data); 5075rightArea = Rectangle.Union(rightArea, layout.RowHeaders); 5100Rectangle clip = Rectangle.Union(layout.RowHeaders, layout.Data); 5147Rectangle rightArea = Rectangle.Union(layout.RowHeaders, layout.Data); 8627rowsRect = Rectangle.Union(rowsRect, layout.RowHeaders);
winforms\Managed\System\WinForms\DataGridView.cs (2)
3413rectTmp = Rectangle.Union(rectTmp, this.layout.ColumnHeaders); 4814this.Invalidate(Rectangle.Union(this.layout.Data, this.layout.ColumnHeaders));
winforms\Managed\System\WinForms\DataGridViewMethods.cs (24)
2461Rectangle clip = Rectangle.Union(this.layout.ColumnHeaders, this.layout.Data); 2464clip = Rectangle.Union(this.layout.TopLeftHeader, clip); 2563Rectangle clip = Rectangle.Union(this.layout.ColumnHeaders, this.layout.Data); 2775Rectangle clip = Rectangle.Union(this.layout.RowHeaders, this.layout.Data); 2778clip = Rectangle.Union(this.layout.TopLeftHeader, clip); 2808Rectangle clip = Rectangle.Union(this.layout.RowHeaders, this.layout.Data); 3018inside = Rectangle.Union(this.layout.TopLeftHeader, inside); 6107Invalidate(Rectangle.Union(this.layout.TopLeftHeader, this.layout.ColumnHeaders)); 8662rectScrollingArea = Rectangle.Union(rectScrollingArea, this.layout.RowHeaders); 8758rectScrollingArea = Rectangle.Union(rectScrollingArea, this.layout.ColumnHeaders); 10669Invalidate(Rectangle.Union(this.layout.TopLeftHeader, this.layout.ColumnHeaders)); 13918Invalidate(Rectangle.Union(this.layout.ColumnHeaders, this.layout.Data)); 14364Invalidate(Rectangle.Union(this.layout.TopLeftHeader, this.layout.ColumnHeaders)); 14953rightArea = Rectangle.Union(rightArea, this.layout.ColumnHeaders); 17127clipRect = Rectangle.Union(clipRect, CalcRowResizeFeedbackRect(this.currentRowSplitBar)); 17131clipRect = Rectangle.Union(clipRect, CalcColResizeFeedbackRect(this.currentColSplitBar)); 17192gridRect = Rectangle.Union(gridRect, this.layout.RowHeaders); 17205gridRect = Rectangle.Union(gridRect, this.layout.ColumnHeaders); 18650Invalidate(Rectangle.Union(this.layout.TopLeftHeader, this.layout.RowHeaders)); 25989Invalidate(Rectangle.Union(this.layout.TopLeftHeader, this.layout.ColumnHeaders)); 26437rowsRect = Rectangle.Union(rowsRect, this.layout.RowHeaders); 29020Invalidate(Rectangle.Union(rectUpper, rectLower)); 29061bottomArea = Rectangle.Union(bottomArea, this.layout.RowHeaders); 29125bottomArea = Rectangle.Union(bottomArea, this.layout.RowHeaders);
winforms\Managed\System\WinForms\DataGridViewTopRowAccessibleObject.cs (1)
47Rectangle rect = Rectangle.Union(this.owner.layout.ColumnHeaders, this.owner.layout.TopLeftHeader);
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1184windowBounds = Rectangle.Union(windowBounds, iconBounds);
winforms\Managed\System\WinForms\Layout\LayoutUtils.cs (2)
464Debug.Assert(Rectangle.Union(region1, region2) == bounds, 495Debug.Assert(Rectangle.Union(region1, region2) == bounds, "region1 and region2 do not add up to bounds.");
winforms\Managed\System\WinForms\ListView.cs (3)
4707rectInvalid = Rectangle.Union(rectInvalid, this.Items[index].Bounds); 4711rectInvalid = Rectangle.Union(rectInvalid, this.Items[startIndex - 1].Bounds); 4721rectInvalid = Rectangle.Union(rectInvalid, this.Items[endIndex + 1].Bounds);
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (4)
333: Rectangle.Union(alignedRightItems, new Rectangle(x,y,itemSize.Width, itemSize.Height)); 346: Rectangle.Union(alignedLeftItems, new Rectangle(x,y,itemSize.Width, itemSize.Height)); 463: Rectangle.Union(alignedRightItems, new Rectangle(x,y,itemSize.Width, itemSize.Height)); 471: Rectangle.Union(alignedLeftItems, new Rectangle(x,y,itemSize.Width, itemSize.Height));
System.Windows.Forms.DataVisualization (1)
WinForm\Utilities\AccessibleObject.cs (1)
347result = Rectangle.Union(result, rect);
System.Workflow.Activities (1)
Designers\StateDesigner.cs (1)
1430moveBounds = Rectangle.Union(moveBounds, stateDesigner.Bounds);
System.Workflow.ComponentModel (4)
AuthoringOM\Design\ActivityDesigner.cs (1)
1578rectangle = Rectangle.Union(textRectangle, rectangle);
AuthoringOM\Design\DesignerWidgets.cs (1)
1304screenRect = Rectangle.Union(screenRect, screen.Bounds);
AuthoringOM\Design\WorkflowLayouts.cs (2)
439transformedViewPort = (transformedViewPort.IsEmpty) ? insersectedLogicalViewPort : Rectangle.Union(transformedViewPort, insersectedLogicalViewPort); 474transformedViewPort = (transformedViewPort.IsEmpty) ? insersectedPhysicalViewPort : Rectangle.Union(transformedViewPort, insersectedPhysicalViewPort);