16 references to Contains
System.Windows.Forms (4)
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
79if (!constrainingBounds.Contains(bounds))
System\Windows\Forms\Layout\DefaultLayout.cs (1)
101Debug.Assert(CommonProperties.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink || newBounds.Contains(oldBounds), "How did we resize in such a way we no longer contain our old bounds?");
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
719if (!e.ClipRectangle.Contains(focusRect) || !Focused || !ShowFocusCues)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
464if (!clipRect.Contains(imageRectangle))
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (2)
213return _glyphBounds != Rectangle.Empty && baseParentBounds.Contains(_glyphBounds) && _glyphBounds.Contains(p) ? Cursors.Hand : null; 227if (_relatedPanel!.Visible && _image is not null && _glyphBounds != Rectangle.Empty && baseParentBounds.Contains(_glyphBounds))
System\Windows\Forms\Design\ControlDesigner.cs (1)
692if (!parentRect.Contains(controlRect) && !parentRect.IntersectsWith(controlRect))
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
878if (child.Visible && ((containRect && rect.Contains(bounds)) || (!containRect && bounds.IntersectsWith(rect))) && 1012if (!nonClipRect.IsEmpty && !parentRect.Contains(controlRect))
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
1111if (!checkBounds.Contains(gBounds)) 1137if (!checkBounds.Contains(gBounds))
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1605return parentBounds.Contains(itemBounds);
System.Windows.Forms.Tests (4)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarHeaderAccessibleObjectTests.cs (1)
54control.ClientRectangle.Contains(actualInClientCoordinates).Should().BeTrue();
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarNextButtonAccessibleObjectTests.cs (1)
39control.ClientRectangle.Contains(actualInClientCoordinates).Should().BeTrue();
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (1)
134Assert.True(propertyGridBounds.Contains(gridViewBounds));
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
111Assert.True(actual.Contains(expected));