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