32 references to ToolStripPointType
System.Windows.Forms (32)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (6)
3444
Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y),
ToolStripPointType
.ToolStripCoords,
ToolStripPointType
.ToolStripItemCoords);
3500
Point itemRelativePoint = item!.TranslatePoint(new Point(mea.X, mea.Y),
ToolStripPointType
.ToolStripCoords,
ToolStripPointType
.ToolStripItemCoords);
3544
Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y),
ToolStripPointType
.ToolStripCoords,
ToolStripPointType
.ToolStripItemCoords);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (6)
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 (8)
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 (10)
2396
Point rectangleLocation = TranslatePoint(r.Location,
ToolStripPointType
.ToolStripItemCoords,
ToolStripPointType
.ToolStripCoords);
3473
internal Point TranslatePoint(Point fromPoint,
ToolStripPointType
fromPointType,
ToolStripPointType
toPointType)
3495
if (fromPointType ==
ToolStripPointType
.ScreenCoords)
3501
if (toPointType ==
ToolStripPointType
.ToolStripItemCoords)
3513
if (fromPointType ==
ToolStripPointType
.ToolStripItemCoords)
3522
if (toPointType ==
ToolStripPointType
.ScreenCoords)
3528
else if (toPointType ==
ToolStripPointType
.ToolStripItemCoords)
3536
Debug.Assert((toPointType ==
ToolStripPointType
.ToolStripCoords), "why are we here! - investigate");
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (2)
109
Rectangle itemBounds = new(ToolStrip.PointToClient(ownerItem.TranslatePoint(Point.Empty,
ToolStripPointType
.ToolStripItemCoords,
ToolStripPointType
.ScreenCoords)), ownerItem.Size);