12 references to TranslatePoint
System.Windows.Forms (12)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
3332
Point itemRelativePoint = item.
TranslatePoint
(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords);
3388
Point itemRelativePoint = item!.
TranslatePoint
(new Point(mea.X, mea.Y), ToolStripPointType.ToolStripCoords, ToolStripPointType.ToolStripItemCoords);
3432
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)
2378
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);