24 references to Intersect
System.Drawing.Primitives (1)
System\Drawing\Rectangle.cs (1)
276Rectangle result = Intersect(rect, this);
System.Windows.Forms (22)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1804Rectangle intersect = !clipRect.IsEmpty ? Rectangle.Intersect(posRect, clipRect) : posRect;
System\Windows\Forms\Control.cs (1)
7921cliprect = Rectangle.Intersect(ClientRectangle, cliprect);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
614layout.TextBounds = Rectangle.Intersect(layout.TextBounds, layout.Field); 629layout.ImageBounds = Rectangle.Intersect(layout.ImageBounds, layout.Field);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (2)
867g.SetClip(Rectangle.Intersect( 868Rectangle.Intersect(imageBounds2, imageBounds),
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (5)
1579if (!Rectangle.Intersect(textRect, clipRect).IsEmpty) 1667Rectangle outline = Rectangle.Intersect(r, OutlineRectangle); 1732Rectangle outline = Rectangle.Intersect(r, OutlineRectangle); 1851if (!Rectangle.Intersect(rectPaint, clipRect).IsEmpty) 1888if (Rectangle.Intersect(rect, clipRect).IsEmpty)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
889targetRectangle = Rectangle.Intersect(clientRect, targetRectangle); 1103clipRect = Rectangle.Intersect(rect, clipRect); 1158clipRect = Rectangle.Intersect(clipRect, rect);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (5)
142Rectangle intersectionBetweenChildAndParent = Rectangle.Intersect(bounds, ownerItemBounds); 151int newIntersectionWidth = Rectangle.Intersect(GetDropDownBounds(newDropDownDirection), ownerItemBounds).Width; 386if (Rectangle.Intersect(dropDownBounds, itemScreenBounds).Height > 1) 391if (Rectangle.Intersect(dropDownBounds, itemScreenBounds).Width > 1) 397if (Rectangle.Intersect(dropDownBounds, itemScreenBounds).Width > 1)
System\Windows\Forms\ToolTip\ToolTip.cs (3)
1572Rectangle intersection = Rectangle.Intersect(possibleLocations[i], neighboringToolRectangle); 1585Rectangle locationAreaWithinScreen = Rectangle.Intersect(screenBounds, possibleLocations[i]); 1600Rectangle locationWithinTopControlRectangle = Rectangle.Intersect(topContainerBounds, possibleLocations[i]);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
1004Rectangle nonClipRect = Rectangle.Intersect(parentRect, controlRect);