52 references to IntersectsWith
System.Windows.Forms (38)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (2)
162if (!_owningComboBox.DroppedDown || !_owningComboBox.ChildListAccessibleObject.Bounds.IntersectsWith(Bounds)) 179if (listBounds.IntersectsWith(Bounds))
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (12)
10439&& _editingPanel.Bounds.IntersectsWith(lastSplitBarRect)) 10507&& _editingPanel.Bounds.IntersectsWith(lastSplitBarRect)) 16699if (clipRect.IntersectsWith(gridRect)) 16708if (clipRect.IntersectsWith(_layout.ResizeBoxRect)) 19294bool paintingNeeded = clipRect.IntersectsWith(edge); 19299paintingNeeded = clipRect.IntersectsWith(edge); 19306paintingNeeded = clipRect.IntersectsWith(edge); 19311paintingNeeded = clipRect.IntersectsWith(edge); 19503if (_layout.TopLeftHeader.Width > 0 && (clipRect.IntersectsWith(_layout.TopLeftHeader) || _lastHeaderShadow != -1)) 19522if (clipRect.IntersectsWith(columnHeadersClip) || _lastHeaderShadow != -1) 19601if (clipRect.IntersectsWith(rowBounds)) 19657if (clipRect.IntersectsWith(rowBounds))
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
173if (!cellBounds.IntersectsWith(_owner.DataGridView.ClientRectangle))
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (3)
1537if (clipBounds.IntersectsWith(cellBounds)) 1627if (clipBounds.IntersectsWith(cellBounds)) 1706if (clipBounds.IntersectsWith(cellBounds))
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
199if (!rowBounds.IntersectsWith(_owningDataGridViewRow.DataGridView.ClientRectangle))
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxItemAccessibleObject.cs (1)
76if (!Parent.BoundingRectangle.IntersectsWith(Bounds))
System\Windows\Forms\Controls\ListView\ListView.cs (3)
2629if (!ClientRectangle.IntersectsWith(itemBounds)) 2693if (!ClientRectangle.IntersectsWith(itemBounds)) 2726if (ClientRectangle.IntersectsWith(subItemBounds))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
132if (!entryBounds.IntersectsWith(propertyGridViewBounds))
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
389if (overflow || (SizingGrip && item.Bounds.IntersectsWith(SizeGripBounds))) 396else if (lastItem is not null && (lastItemBounds.IntersectsWith(item.Bounds)))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
3880if (bounds.IntersectsWith(comparisonRect) && _lastMouseActiveItem.ParentInternal == this) 3902if (bounds.IntersectsWith(comparisonRect)) 4342bool intersects = item.Bounds.IntersectsWith(clientBounds);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
1375if (displayRect.IntersectsWith(paintRects[i])) 1397if (!displayRect.IntersectsWith(otherBottom))
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
113if (overlap.IntersectsWith(itemBounds))
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (2)
325else if (alignedRightItems.Width > 0 && alignedLeftItems.Width > 0 && alignedRightItems.IntersectsWith(alignedLeftItems)) 458else if (alignedRightItems.Width > 0 && alignedLeftItems.Width > 0 && alignedRightItems.IntersectsWith(alignedLeftItems))
System\Windows\Forms\Layout\LayoutUtils.cs (2)
221if (!rect1.IntersectsWith(rect2)) 243if (!rect1.IntersectsWith(rect2))
System\Windows\Forms\Layout\TableLayout.cs (1)
1481Debug.Assert(!cellsOccupied1.IntersectsWith(cellsOccupied2), "controls overlap in the same cell");
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
392if (clipRect.IntersectsWith(insideCellBounds))
System.Windows.Forms.Design (12)
System\ComponentModel\Design\DesignerActionUI.cs (2)
649!_behaviorService.AdornerWindowControl.DisplayRectangle.IntersectsWith(glyph.Bounds)) 716_behaviorService.AdornerWindowControl.DisplayRectangle.IntersectsWith(glyph.Bounds))
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
477!clipBounds.IntersectsWith(control.Bounds) || // has to be partially visible on the rootcomp's surface
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
347if (large.IntersectsWith(smaller[s]))
System\Windows\Forms\Design\ComponentTray.cs (1)
1382if (child is TrayControl tc && bounds.IntersectsWith(rect))
System\Windows\Forms\Design\ControlDesigner.cs (2)
692if (!parentRect.Contains(controlRect) && !parentRect.IntersectsWith(controlRect)) 1541if (_inheritanceUI is not null && pe.ClipRectangle.IntersectsWith(InheritanceUI.InheritanceGlyphRectangle))
System\Windows\Forms\Design\DesignerFrame.cs (1)
467if (overlayControl.ClientRectangle.IntersectsWith(invalidateRect))
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
549if (rootControl is not null && snappedBounds.IntersectsWith(rootControl.ClientRectangle)) 878if (child.Visible && ((containRect && rect.Contains(bounds)) || (!containRect && bounds.IntersectsWith(rect))) &&
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (2)
299if (!glyphBounds.IntersectsWith(controlBounds)) 329if ((component == _designerHost.RootComponent) || !glyphBounds.IntersectsWith(controlBounds))
System.Windows.Forms.Tests (2)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (2)
327if (dropDownRect.IntersectsWith(itemAccessibleObject.Bounds)) 344if (dropDownRect.IntersectsWith(itemAccessibleObject.Bounds))