89 references to PointToClient
System.Windows.Forms (56)
System\Windows\Forms\Control.cs (3)
2216
private protected virtual bool IsHoveredWithMouse() => ClientRectangle.Contains(
PointToClient
(MousePosition));
11084
client =
PointToClient
(new Point(x, y));
11586
PointToClient
(PARAM.ToPoint(m.LParamInternal)),
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (1)
161
Point pt = owner.
PointToClient
(new Point(x, y));
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (4)
2176
Point ptMouse =
PointToClient
(MousePosition);
2190
Point ptMouse =
PointToClient
(MousePosition);
2202
Point ptMouse =
PointToClient
(MousePosition);
3852
activate &= ClientRectangle.Contains(
PointToClient
(mouseCoord));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (7)
6023
Point ptMouse =
PointToClient
(MousePosition);
9634
Point ptMouse =
PointToClient
(MousePosition);
16142
bool mouseOverToolTipControl = _toolTipControl.Activated && ClientRectangle.Contains(
PointToClient
(MousePosition));
25983
Point ptMouse =
PointToClient
(MousePosition);
29146
Point ptMouse =
PointToClient
(MousePosition);
29856
Point ptMouse =
PointToClient
(MousePosition);
29966
client =
PointToClient
(PARAM.ToPoint(m.LParamInternal));
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1799
bool newMouseInDropDownButtonBounds = dropDownButtonRect.Contains(DataGridView.
PointToClient
(Control.MousePosition));
System\Windows\Forms\Controls\Labels\LinkLabel.LinkLabelAccessibleObject.cs (1)
65
Point p = owner.
PointToClient
(new Point(x, y));
System\Windows\Forms\Controls\ListView\ListView.cs (6)
2181
pt =
PointToClient
(point)
4371
pos =
PointToClient
(pos);
5821
pt =
PointToClient
(Cursor.Position)
5863
pt =
PointToClient
(Cursor.Position)
6324
pt =
PointToClient
(Cursor.Position)
6647
pos =
PointToClient
(pos);
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
292
Point point = owningListView.
PointToClient
(hitTestPoint);
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
255
Point pt =
PointToClient
(WindowsFormsUtils.LastCursorPoint);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
395
Point point = owner.
PointToClient
(new Point(xScreen, yScreen));
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.PropertyGridAccessibleObject.cs (1)
30
Point clientPoint = owningPropertyGrid.
PointToClient
(new Point((int)x, (int)y));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
3439
editPoint = EditTextBox.
PointToClient
(editPoint);
5254
mouseLoc =
PointToClient
(mouseLoc);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
2054
client =
PointToClient
(PARAM.ToPoint(m.LParamInternal));
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (2)
566
if (sizeGripBounds.Contains(
PointToClient
(PARAM.ToPoint(m.LParamInternal))))
632
if (ClientRectangle.Contains(
PointToClient
(PARAM.ToPoint(m.LParamInternal))))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
4515
PointToClient
(cursorLocation),
4593
Point pt =
PointToClient
(WindowsFormsUtils.LastCursorPoint);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
30
Point clientHit = owner.
PointToClient
(new Point(x, y));
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
1006
? ParentInternal.
PointToClient
(dropDownItem.DropDownLocation)
1763
bounds.Location = toolStrip.
PointToClient
(bounds.Location);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
57
return _owner.GetItemAt(_owner.
PointToClient
(new Point(x, y)));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3455
toPoint = parent.
PointToClient
(fromPoint);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
596
toolStripPanel.DragBounds.Contains(toolStripPanel.
PointToClient
(screenLocation)))
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (2)
786
Point clientLocation =
PointToClient
(screenLocation);
819
Point currentCursorLoc =
PointToClient
(WindowsFormsUtils.LastCursorPoint);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
109
Rectangle itemBounds = new(ToolStrip.
PointToClient
(ownerItem.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords)), ownerItem.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (3)
26
ShowItemDropPoint(_owner.
PointToClient
(new Point(e.X, e.Y)));
40
OnDropItem(item, _owner.
PointToClient
(new Point(e.X, e.Y)));
48
if (ShowItemDropPoint(_owner.
PointToClient
(new Point(e.X, e.Y))))
System\Windows\Forms\Controls\TreeView\TreeView.cs (5)
2062
pt =
PointToClient
(Cursor.Position)
2923
pt =
PointToClient
(Cursor.Position)
2954
pt =
PointToClient
(Cursor.Position)
3028
Point pos =
PointToClient
(Cursor.Position);
3117
menu.ShowInternal(this,
PointToClient
(MousePosition), isKeyboardActivated: false);
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
64
Point p = owningTreeView.
PointToClient
(new Point(x, y));
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1360
client =
PointToClient
(location);
System\Windows\Forms\Form.cs (1)
6902
Point point =
PointToClient
(PARAM.ToPoint(m.LParamInternal));
System\Windows\Forms\ToolTip\ToolTip.cs (2)
1058
pt = current.
PointToClient
(screenCoords);
1335
associatedControl.
PointToClient
(p);
System.Windows.Forms.Design (31)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
179
if (Parent is not null && Bounds.Contains(Parent.
PointToClient
(Cursor.Position)) && !_dropDownRectangle.Contains(mevent.Location))
282
if (Parent is not null && Bounds.Contains(Parent.
PointToClient
(Cursor.Position)))
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.cs (1)
43
Point point = palette.
PointToClient
(new(x, y));
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (3)
211
point =
PointToClient
(point);
247
point =
PointToClient
(point);
319
Point pt1 =
PointToClient
(default);
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (1)
179
Point pt = adornerWindow.
PointToClient
(new Point(x, y));
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
465
public Point ScreenToAdornerWindow(Point p) => _adornerWindow.
PointToClient
(p);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
448
initialDropPoint = ((Control)_dragComponents[_primaryComponentIndex].dragComponent).Parent.
PointToClient
(initialDropPoint);
824
dropPoint = target.
PointToClient
(dropPoint);
System\Windows\Forms\Design\ComponentTray.cs (3)
1069
_mouseDropLocation =
PointToClient
(new Point(de.X, de.Y));
1636
location.Offset(
PointToClient
(default));
2552
Point pt1 =
PointToClient
(default);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2386
pt = Control.Parent!.
PointToClient
(pt);
System\Windows\Forms\Design\DesignerFrame.cs (1)
466
Rectangle invalidateRect = new(overlayControl.
PointToClient
(screenRectangle.Location), screenRectangle.Size);
System\Windows\Forms\Design\ListViewDesigner.cs (1)
78
Point listViewPoint = Control.
PointToClient
(point);
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
465
c.
PointToClient
(new Point(initialX, initialY));
758
Point dropPt = Destination.GetDesignerControl().
PointToClient
(new Point(de.X, de.Y));
965
Point convertedPoint = Destination.GetDesignerControl().
PointToClient
(new Point(de.X, de.Y));
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
464
location = Control.
PointToClient
(location);
1823
location = Control.
PointToClient
(location);
2014
offset = Control.
PointToClient
(offset);
System\Windows\Forms\Design\SelectionUIService.cs (2)
208
Point pt =
PointToClient
(value);
791
Point clientCoords =
PointToClient
(pt);
System\Windows\Forms\Design\TabControlDesigner.cs (2)
180
Point hitTest = Control.
PointToClient
(point);
572
Point dropPoint = Control.
PointToClient
(new Point(de.X, de.Y));
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1392
point = Control.
PointToClient
(point);
1804
offset = parentToolStrip.
PointToClient
(offset);
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
534
position = _treeView1.
PointToClient
(position);
577
position = _treeView1.
PointToClient
(position);
System\Windows\Forms\Design\TreeViewDesigner.cs (1)
52
point = Control.
PointToClient
(point);
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
808
ListDragTarget.IndexFromPoint(ListDragTarget.
PointToClient
(new Point(e.X, e.Y)));
WinFormsControlsTest (1)
ListViewTest.cs (1)
30
pos =
PointToClient
(pos);