26 references to Intersect
System.Drawing (1)
commonui\System\Drawing\Rectangle.cs (1)
426Rectangle result = Rectangle.Intersect(rect, this);
System.Windows.Forms (23)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (2)
1395layout.textBounds = Rectangle.Intersect(layout.textBounds, layout.field); 1406layout.imageBounds = Rectangle.Intersect(layout.imageBounds, layout.field);
winforms\Managed\System\WinForms\Control.cs (2)
9419cliprect = Rectangle.Intersect(this.ClientRectangle, cliprect); 18398intersect = Rectangle.Intersect(posRect, clipRect);
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (1)
751outline = Rectangle.Intersect(bounds, outline);
winforms\Managed\System\WinForms\DataGridViewImageCell.cs (2)
911g.SetClip(Rectangle.Intersect(Rectangle.Intersect(imgBounds2, imgBounds), Rectangle.Truncate(g.VisibleClipBounds)));
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (5)
1922if (!Rectangle.Intersect(textRect, clipRect).IsEmpty) { 2007outline = Rectangle.Intersect(r, outline); 2038outline = Rectangle.Intersect(r, outline); 2142if (!Rectangle.Intersect(rectPaint, clipRect).IsEmpty) { 2178if (Rectangle.Intersect(rect, clipRect).IsEmpty) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (3)
1053rectTarget = Rectangle.Intersect(clientRect, rectTarget); 1276Rectangle cr = Rectangle.Intersect(rect, clipRect); 1319Rectangle cr = Rectangle.Intersect(clipRect, r);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (5)
123Rectangle intersectionBetweenChildAndParent = Rectangle.Intersect(bounds, ownerItemBounds); 131int newIntersectionWidth = Rectangle.Intersect(GetDropDownBounds(newDropDownDirection), ownerItemBounds).Width; 389if (Rectangle.Intersect(dropDownBounds, itemScreenBounds).Height > 1) { 394if (Rectangle.Intersect(dropDownBounds, itemScreenBounds).Width > 1) { 399if (Rectangle.Intersect(dropDownBounds, itemScreenBounds).Width > 1) {
winforms\Managed\System\WinForms\ToolTip.cs (3)
1817Rectangle intersection = Rectangle.Intersect(possibleLocations[i], neighboringToolRectangle); 1828Rectangle locationAreaWithinScreen = Rectangle.Intersect(screenBounds, possibleLocations[i]); 1840Rectangle locationWithinTopControlRectangle = Rectangle.Intersect(topContainerBounds, possibleLocations[i]);
System.Workflow.ComponentModel (2)
AuthoringOM\Design\ActivityDesigner.cs (1)
1037rectangle = Rectangle.Intersect(Bounds, rectangle);
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (1)
317designerBounds = Rectangle.Intersect(designerBounds, clipBounds);