16 references to Contains
System.Windows.Forms (4)
System\Windows\Forms\Internal\WinFormsUtils.cs (1)
79
if (!constrainingBounds.
Contains
(bounds))
System\Windows\Forms\Layout\DefaultLayout.cs (1)
101
Debug.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)
719
if (!e.ClipRectangle.
Contains
(focusRect) || !Focused || !ShowFocusCues)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
464
if (!clipRect.
Contains
(imageRectangle))
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (2)
213
return _glyphBounds != Rectangle.Empty && baseParentBounds.
Contains
(_glyphBounds) && _glyphBounds.Contains(p) ? Cursors.Hand : null;
227
if (_relatedPanel!.Visible && _image is not null && _glyphBounds != Rectangle.Empty && baseParentBounds.
Contains
(_glyphBounds))
System\Windows\Forms\Design\ControlDesigner.cs (1)
692
if (!parentRect.
Contains
(controlRect) && !parentRect.IntersectsWith(controlRect))
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
878
if (child.Visible && ((containRect && rect.
Contains
(bounds)) || (!containRect && bounds.IntersectsWith(rect))) &&
1012
if (!nonClipRect.IsEmpty && !parentRect.
Contains
(controlRect))
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
1111
if (!checkBounds.
Contains
(gBounds))
1137
if (!checkBounds.
Contains
(gBounds))
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1605
return parentBounds.
Contains
(itemBounds);
System.Windows.Forms.Tests (4)
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarHeaderAccessibleObjectTests.cs (1)
54
control.ClientRectangle.
Contains
(actualInClientCoordinates).Should().BeTrue();
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarNextButtonAccessibleObjectTests.cs (1)
39
control.ClientRectangle.
Contains
(actualInClientCoordinates).Should().BeTrue();
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (1)
134
Assert.True(propertyGridBounds.
Contains
(gridViewBounds));
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
111
Assert.True(actual.
Contains
(expected));