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