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