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