116 references to Contains
System.Windows.Forms (47)
winforms\Managed\System\WinForms\ComboBox.cs (3)
1851if (ClientRect.Contains(pt)) { 1986if (!Rect.Contains(p)) { 3738if (captured && ClientRect.Contains(pt)) {
winforms\Managed\System\WinForms\Control.cs (2)
12876if (ClientRectangle.Contains( client )) { 16106return this.ClientRectangle.Contains(this.PointToClient(Control.MousePosition));
winforms\Managed\System\WinForms\DataGridView.cs (5)
2768return this.editingControl.Bounds.Contains(ptMouse); 2781return this.editingPanel.Bounds.Contains(ptMouse); 2794if (this.vertScrollBar.Bounds.Contains(ptMouse)) 2801return this.horizScrollBar.Bounds.Contains(ptMouse); 4860activate &= this.ClientRectangle.Contains(PointToClient(mouseCoord));
winforms\Managed\System\WinForms\DataGridViewComboBoxCell.cs (1)
2032bool newMouseInDropDownButtonBounds = dropDownButtonRect.Contains(this.DataGridView.PointToClient(Control.MousePosition));
winforms\Managed\System\WinForms\DataGridViewMethods.cs (4)
6057if (!this.ClientRectangle.Contains(ptMouse)) 16581bool mouseOverToolTipControl = this.toolTipControl.Activated && this.ClientRectangle.Contains(PointToClient(Control.MousePosition)); 26116if (!this.ClientRectangle.Contains(ptMouse)) 29899if (contextMenuStrip != null && this.ClientRectangle.Contains(client))
winforms\Managed\System\WinForms\Label.cs (1)
1741m.Result = (IntPtr)((rectInScreen.Contains(pt) ? NativeMethods.HTCLIENT : NativeMethods.HTNOWHERE));
winforms\Managed\System\WinForms\PropertyGrid.cs (4)
2613if (ToolbarAccessibleObject.Bounds.Contains(point)) { 2617if (GridViewAccessibleObject.Bounds.Contains(point)) { 2621if (HotCommandsAccessibleObject.Bounds.Contains(point)) { 2625if (HelpAccessibleObject.Bounds.Contains(point)) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
1491if (gridEntry.AccessibilityObject.Bounds.Contains(point)) {
winforms\Managed\System\WinForms\SplitContainer.cs (2)
1257if (Cursor == DefaultCursor && SplitterRectangle.Contains(e.Location)) 1315if (IsSplitterMovable && SplitterRectangle.Contains(e.Location)) {
winforms\Managed\System\WinForms\StatusStrip.cs (2)
562if (sizeGripBounds.Contains(PointToClient(new Point(x, y)))) { 621if (ClientRectangle.Contains(PointToClient(new Point(x, y)))) {
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
2266if (ClientRectangle.Contains( client )) {
winforms\Managed\System\WinForms\ToolStrip.cs (1)
5512if (bounds.Contains(ownerClientAreaRelativeDropPoint)) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1451if (!ClientRectangle.Contains(mea.Location)) { 1454if (OwnerItem.Bounds.Contains(WindowsFormsUtils.TranslatePoint(mea.Location, this, OwnerToolStrip))) {
winforms\Managed\System\WinForms\ToolStripManager.cs (1)
631toolStripPanel.DragBounds.Contains(toolStripPanel.PointToClient(screenLocation))) {
winforms\Managed\System\WinForms\ToolStripPanel.cs (7)
678if (row.Bounds.Contains(controlArray[i].Location)) { 975if (!this.DragBounds.Contains(clientLocation)) { 989if (draggedControl.IsCurrentlyDragging && !this.DragBounds.Contains(clientLocation)) { 1004if (ClientRectangle.Contains(currentCursorLoc)) { 1027pointInCurrentRow = currentToolStripPanelRow.DragBounds.Contains(clientLocation); 1031pointInCurrentRow = currentToolStripPanelRow.Bounds.Contains(clientLocation); 1217if (bounds.Contains(clientLocation)) {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (4)
1045if (DragBounds.Contains(clientEndLocation)) { 1288if (Row.Cells[index].Bounds.Contains(locationToDrag)) { 1558if (DragBounds.Contains(clientEndLocation)) { 1817if (cell.Bounds.Contains(locationToDrag)) {
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (1)
1206if (!displayRect.Contains(gradientCopyPixel)) {
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (3)
514if (DropDownButtonBounds.Contains(e.Location)) { 543if (DropDownButtonBounds.Contains(e.Location)) { 557if ((e.Button == MouseButtons.Left) && this.SplitButtonButton.Bounds.Contains(clickPoint)) {
winforms\Managed\System\WinForms\TreeView.cs (1)
3394if (ClientRectangle.Contains( client )) {
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1629if (ClientRectangle.Contains(client)) {
System.Workflow.Activities (2)
Designers\StateDesigner.Layouts.cs (2)
349if (this.Bounds.Contains(point)) 499if (this.Bounds.Contains(point))
System.Workflow.ComponentModel (67)
AuthoringOM\Design\ActivityDesigner.cs (7)
934if (connectionPoints[j].Bounds.Contains(point)) 943if (bounds.Contains(point) && hitInfo == HitTestInfo.Nowhere) 945HitTestLocations flags = (bounds.Contains(point)) ? HitTestLocations.Designer : HitTestLocations.None; 948flags |= (hitRectangle.Contains(point)) ? HitTestLocations.Left : flags; 951flags |= (hitRectangle.Contains(point)) ? HitTestLocations.Top : flags; 954flags |= (hitRectangle.Contains(point)) ? HitTestLocations.Right : flags; 957flags |= (hitRectangle.Contains(point)) ? HitTestLocations.Bottom : flags;
AuthoringOM\Design\ActivityPreviewDesigner.cs (8)
379if (ContainedDesigners.Count == 0 && HelpTextRectangle.Contains(point)) 383else if (this.previewStrip.Bounds.Contains(point)) 392else if (ShowPreview && this.previewWindow.Bounds.Contains(point) && 393(this.previewWindow.PreviewMode || PreviewedDesigner == null || !PreviewedDesigner.Bounds.Contains(point))) 515if (ActiveDesigner == this && this.previewStrip.Bounds.Contains(dropPoint)) 667if (this.previewStrip.Bounds.Contains(point)) 669else if (ShowPreview && this.previewWindow.Bounds.Contains(point)) 681if (PreviewedDesigner != null && ShowPreview && this.previewWindow.PreviewMode && this.previewWindow.Bounds.Contains(point))
AuthoringOM\Design\CompositeActivityDesigner.cs (3)
1080if (ExpandButtonRectangle.Contains(point)) 1084else if (Expanded && Bounds.Contains(point)) 1213if (ExpandButtonRectangle.Contains(new Point(e.X, e.Y)))
AuthoringOM\Design\Connector.cs (3)
843if (editPoint.Bounds.Contains(cursorPoint)) 862if (this.editPoints[i].Bounds.Contains(point)) 984if (editPoint.Bounds.Contains(point))
AuthoringOM\Design\DesignerHelpers.cs (1)
1905if (rect.Contains(point))
AuthoringOM\Design\DesignerWidgets.cs (14)
426if (this.itemStrip.Bounds.Contains(mousePoint)) 456if (this.itemStrip.Bounds.Contains(mousePoint)) 512if (buttonBounds.Contains(mousePoint)) 520if (buttonBounds.Contains(mousePoint)) 736if (GetItemBounds(item).Contains(point)) 1179if (GetItemBounds(i).Contains(mousePoint)) 1206if (GetItemBounds(i).Contains(mousePoint)) 1833if (buttonRectangle.Contains(new Point(e.X, e.Y))) 1850if (buttonRectangle.Contains(new Point(e.X, e.Y)) && tabItemInfo.Text != this.buttonTips.GetToolTip(this)) 1905if (tabItemRectangle.Contains(mousePosition)) 2608if (GetItemBounds(this.items[itemIndex]).Contains(point)) 2620if (GetButtonBounds(ScrollButton.Left).Contains(point)) 2625else if (GetButtonBounds(ScrollButton.Right).Contains(point)) 3361if (PreviewModeButtonRectangle.Contains(new Point(e.X, e.Y)))
AuthoringOM\Design\FreeFormDesigner.cs (1)
556hitInfo.AssociatedDesigner.Bounds.Contains(point))
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (1)
113if (!clientRectangle.Contains(clientPoint))
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (3)
436if (connectablePoint.Bounds.Contains(cursorPoint.Value)) 577bool addSnapPoints = (designer.Bounds.Contains(currentPoint)); 583if (snapPoint.Bounds.Contains(currentPoint))
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (9)
126if (actionBounds.Contains(clientPoint)) 132if (buttonBounds.Contains(clientPoint) && action.Buttons[j].State == ActionButton.States.Disabled) 143if (buttonBounds.Contains(clientPoint)) 184if (actionBounds.Contains(clientPoint)) 187bool buttonContainsPoint = buttonBounds.Contains(clientPoint); 233if (actionBounds.Contains(new Point(eventArgs.X, eventArgs.Y))) 254if (actionBounds.Contains(clientPoint)) 264if (buttonBounds.Contains(clientPoint) && action.ActionType != DynamicAction.ActionTypes.TwoState) 344if (actionBounds.Contains(point) || this.draggedActionIndex == i)
AuthoringOM\Design\MessageFilters\GlyphManager.cs (3)
284if (this.activeGlyph == null || !this.activeGlyph.GetBounds(this.activeDesigner, true).Contains(point)) 322if (this.rectangles[i].Contains(p)) 345if (glyph.GetBounds(designer, false).Contains(point))
AuthoringOM\Design\MessageFilters\ResizingMessageFilter.cs (1)
173if (grabHandle.Contains(point))
AuthoringOM\Design\SequentialActivityDesigner.cs (3)
310else if (ContainedDesigners.Count == 0 && HelpTextRectangle.Contains(point)) 320if (connectors[i].Contains(point)) 391if (HelpTextRectangle.Contains(dropPoint))
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
713if (dropTargets[i].Contains(dropPoint))
AuthoringOM\Design\WorkflowLayouts.cs (3)
404if (pageLayoutData.ViewablePageBounds.Contains(logicalCoOrd)) 486if (pageLayoutData.PageBounds.Contains(logicalPoint)) 501if (pageLayoutData.LogicalPageBounds.Contains(logicalPoint))
AuthoringOM\Design\WorkflowView.cs (6)
1739if (!clientRectangle.Contains(rect.Location) || !clientRectangle.Contains(new Point(rect.Right, rect.Bottom))) 1742if (!clientRectangle.Contains(new Point(rect.Left, clientRectangle.Top)) || !clientRectangle.Contains(new Point(rect.Right, clientRectangle.Top))) 1752if (!clientRectangle.Contains(new Point(clientRectangle.Left, rect.Top)) || !clientRectangle.Contains(new Point(clientRectangle.Left, rect.Bottom)))