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