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