30 references to Location
System.Windows.Forms (18)
System\Windows\Forms\Controls\Buttons\Button.cs (1)
232if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !ValidationCancelled)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
491&& PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
472&& PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1788if (IsAccessibilityObjectCreated && _childEdit is not null && ChildEditAccessibleObject.Bounds.Contains(PointToScreen(e.Location)))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
2593Point screenPoint = EditTextBox.PointToScreen(e.Location); 2599PInvokeCore.SendMessage(EditTextBox, PInvokeCore.WM_LBUTTONUP, (WPARAM)0, (LPARAM)e.Location);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1474if (!ValidationCancelled && PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1213if (!ClientRectangle.Contains(mea.Location)) 1218if (OwnerItem.Bounds.Contains(WindowsFormsUtils.TranslatePoint(mea.Location, this, OwnerToolStrip)))
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
131Point currentLocation = TranslatePoint(mea.Location, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (2)
421if (DropDownButtonBounds.Contains(e.Location)) 448if (DropDownButtonBounds.Contains(e.Location))
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
696if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !ValidationCancelled) 909Point point = e.Location;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
226if (!_parent.ValidationCancelled && PInvoke.WindowFromPoint(PointToScreen(e.Location)) == HWND)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (1)
66if (!_parent.ValidationCancelled && PInvoke.WindowFromPoint(PointToScreen(e.Location)) == HWND)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (2)
1068if (Cursor == DefaultCursor && SplitterRectangle.Contains(e.Location)) 1135if (IsSplitterMovable && SplitterRectangle.Contains(e.Location))
System.Windows.Forms.Design (8)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
130if (_dropDownRectangle.Contains(e.Location)) 179if (Parent is not null && Bounds.Contains(Parent.PointToClient(Cursor.Position)) && !_dropDownRectangle.Contains(mevent.Location))
System\Windows\Forms\Design\ToolStripTemplateNode.cs (6)
479loc.Offset(e.Location); 485if (_hotRegion.Contains(e.Location) && !KeyboardService.TemplateNodeActive) 613if (_hotRegion.Contains(e.Location)) 1158loc.Offset(e.Location); 1187if (_addItemButton.ButtonBounds.Contains(e.Location)) 1191else if (_addItemButton.DropDownButtonBounds.Contains(e.Location))
System.Windows.Forms.Tests (4)
System\Windows\Forms\HandledMouseEventArgsTests.cs (2)
23Assert.Equal(new Point(x, y), e.Location); 39Assert.Equal(new Point(x, y), e.Location);
System\Windows\Forms\MouseEventArgsTests.cs (1)
23Assert.Equal(new Point(x, y), e.Location);
System\Windows\Forms\TreeNodeMouseClickEventArgsTests.cs (1)
29Assert.Equal(new Point(x, y), e.Location);