12 references to TranslatePoint
System.Windows.Forms (12)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
3330
Point itemRelativePoint = item.
TranslatePoint
(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords);
3386
Point itemRelativePoint = item!.
TranslatePoint
(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords);
3430
Point itemRelativePoint = item.
TranslatePoint
(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (3)
141
Rectangle ownerItemBounds = new(
TranslatePoint
(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), Size);
335
Point itemScreenLocation =
TranslatePoint
(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
384
Rectangle itemScreenBounds = new(
TranslatePoint
(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (4)
120
_startLocation =
TranslatePoint
(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
131
Point currentLocation =
TranslatePoint
(mea.Location, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
160
Point endLocation =
TranslatePoint
(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
217
Point endLocation =
TranslatePoint
(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2370
Point rectangleLocation =
TranslatePoint
(r.Location, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ToolStripCoords);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
109
Rectangle itemBounds = new(ToolStrip.PointToClient(ownerItem.
TranslatePoint
(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords)), ownerItem.Size);