74 references to Contains
System.Drawing (1)
commonui\System\Drawing\Rectangle.cs (1)
354
return
Contains
(pt.X, pt.Y);
System.Windows.Forms (71)
winforms\Managed\System\WinForms\AccessibleObject.cs (2)
502
if (child != null && child.Bounds.
Contains
(x, y)) {
520
if (this.Bounds.
Contains
(x, y)) {
winforms\Managed\System\WinForms\ButtonBase.cs (1)
875
if (!r.
Contains
(mevent.X, mevent.Y)) {
winforms\Managed\System\WinForms\CheckedListBox.cs (2)
1620
if (child.Bounds.
Contains
(x, y)) {
1627
if (this.Bounds.
Contains
(x, y)) {
winforms\Managed\System\WinForms\DataGrid.cs (11)
4065
if (layout.Data.
Contains
(e.X, e.Y) || layout.RowHeaders.
Contains
(e.X, e.Y)) {
4244
if ((layout.Data.
Contains
(e.X, e.Y)
4245
|| (layout.RowHeadersVisible && layout.RowHeaders.
Contains
(e.X, e.Y)))) {
6468
if (layout.CaptionVisible && layout.Caption.
Contains
(x,y)) {
6472
if (layout.ParentRowsVisible && layout.ParentRows.
Contains
(x,y)) {
6477
if (!layout.Inside.
Contains
(x,y))
6480
if (layout.TopLeftHeader.
Contains
(x,y))
6484
if (layout.ColumnHeaders.
Contains
(x,y)) {
6498
if (layout.RowHeaders.
Contains
(x,y)) {
6514
if (layout.Data.
Contains
(x,y)) {
winforms\Managed\System\WinForms\DataGridCaption.cs (3)
599
if (backButtonRect.
Contains
(x,y))
603
if (downButtonRect.
Contains
(x,y))
607
if (textRect.
Contains
(x,y))
winforms\Managed\System\WinForms\DataGridParentRows.cs (4)
441
if (layout.rightArrow.
Contains
(x,y)) {
452
else if (layout.leftArrow.
Contains
(x,y)) {
520
if (!layout.rightArrow.IsEmpty && layout.rightArrow.
Contains
(x,y))
525
if (!layout.leftArrow.IsEmpty && layout.leftArrow.
Contains
(x,y))
winforms\Managed\System\WinForms\DataGridRelationshipRow.cs (3)
297
return outline.
Contains
(x,y);
324
if (relRect.
Contains
(x, y)) {
344
if (relRect.
Contains
(x, y)) {
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
608
mouseInContentBounds = GetContentBounds(e.RowIndex).
Contains
(e.X, e.Y);
winforms\Managed\System\WinForms\DataGridViewCell.cs (3)
3354
this.DataGridView.CellMouseDownInContentBounds = GetContentBounds(e.RowIndex).
Contains
(e.X, e.Y);
3461
if (e.Button == MouseButtons.Left && GetContentBounds(e.RowIndex).
Contains
(x, y))
4728
if (GetErrorIconBounds(e.RowIndex).
Contains
(e.X, e.Y))
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (1)
1040
mouseInContentBounds = GetContentBounds(e.RowIndex).
Contains
(e.X, e.Y);
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
540
return linkBounds.
Contains
(x, y);
winforms\Managed\System\WinForms\DataGridViewMethods.cs (8)
9381
if (!this.layout.Inside.
Contains
(x, y))
9386
if (this.horizScrollBar != null && this.horizScrollBar.Visible && this.horizScrollBar.Bounds.
Contains
(x, y))
9392
if (this.vertScrollBar != null && this.vertScrollBar.Visible && this.vertScrollBar.Bounds.
Contains
(x, y))
9398
if (this.layout.TopLeftHeader.
Contains
(x, y))
9441
if (this.layout.ColumnHeaders.
Contains
(x, y))
9543
if (this.layout.RowHeaders.
Contains
(x, y))
9619
if (this.layout.Data.
Contains
(x, y))
22470
if (this.dataGridViewOper[DATAGRIDVIEWOPER_trackKeyboardColResize] && this.resizeClipRectangle.
Contains
(x, this.resizeClipRectangle.Top))
winforms\Managed\System\WinForms\Form.cs (4)
5963
if (current.
Contains
(suggestedX, suggestedY)) {
5966
if (current.
Contains
(suggestedX + proposedWidth, suggestedY)) {
5969
if (current.
Contains
(suggestedX, suggestedY + proposedHeight)) {
5972
if (current.
Contains
(suggestedX + proposedWidth, suggestedY + proposedHeight)) {
winforms\Managed\System\WinForms\LinkLabel.cs (1)
2682
if (this.Bounds.
Contains
(x, y)) {
winforms\Managed\System\WinForms\ListView.cs (1)
3542
if (!this.ClientRectangle.
Contains
(x, y)) {
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
2322
if (outlineRect.
Contains
(x, y)) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyDescriptorGridEntry.cs (2)
431
if (uiItemRects[i].
Contains
(mouseX, GridEntryHost.GetGridEntryHeight() / 2)) {
589
if (uiItemRects[i].
Contains
(x, GridEntryHost.GetGridEntryHeight() / 2)) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
5765
if (!resizeUp && bGripRect.
Contains
(x, y))
5769
else if (resizeUp && tGripRect.
Contains
(x, y)) {
winforms\Managed\System\WinForms\ToolStrip.cs (2)
4446
bool verticallyContained = clientBounds.
Contains
(clientBounds.X, item.Bounds.Top) &&
4447
clientBounds.
Contains
(clientBounds.X, item.Bounds.Bottom);
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (11)
520
if (!displayRect.
Contains
(displayRect.X, nextItem.Bounds.Top)
521
|| !displayRect.
Contains
(displayRect.X, nextItem.Bounds.Bottom)) {
533
if ( (this.Items[index].Visible && displayRect.
Contains
(displayRect.X, this.Items[index].Bounds.Top - delta))
543
if (displayRect.
Contains
(displayRect.X, this.Items[index].Bounds.Bottom - delta)) {
669
if (displayRectangle.
Contains
(displayRectangle.X, adjustedLastItemBounds.Top)
670
&& displayRectangle.
Contains
(displayRectangle.X, adjustedLastItemBounds.Bottom)) {
690
if (displayRectangle.
Contains
(displayRectangle.X, adjustedLastItemBounds.Top)
691
&& displayRectangle.
Contains
(displayRectangle.X, adjustedLastItemBounds.Bottom)) {
814
if (this.indexOfFirstDisplayedItem == -1 && displayRectangle.
Contains
(displayRectangle.X, item.Bounds.Top)) {
822
UpScrollButton.Enabled = !displayRectangle.
Contains
(displayRectangle.X, minY);
823
DownScrollButton.Enabled = !displayRectangle.
Contains
(displayRectangle.X, maxY);
winforms\Managed\System\WinForms\ToolStripManager.cs (2)
1051
if (!activeToolStrip.ClientRectangle.
Contains
(pt.x, pt.y)) {
1058
&& activeToolStripDropDown.OwnerDropDownItem.DropDownButtonArea.
Contains
(x, y))) {
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (2)
353
if (!clientRectangle.
Contains
(x, y)) {
478
if (!clientRectangle.
Contains
(x, y)) {
winforms\Managed\System\WinForms\UpDownBase.cs (3)
1579
if (rect.
Contains
(e.X, e.Y)) {
1618
if (rectUp.
Contains
(e.X, e.Y)) {
1622
else if (rectDown.
Contains
(e.X, e.Y)) {
System.Workflow.Activities (2)
Designers\StateDesigner.Layouts.cs (2)
363
if (layout.Bounds.
Contains
(x, y))
369
if (this.Bounds.
Contains
(x, y))