32 references to ToolStripPointType
System.Windows.Forms (32)
winforms\Managed\System\WinForms\ToolStrip.cs (6)
3500
Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y),
ToolStripPointType
.ToolStripCoords,
ToolStripPointType
.ToolStripItemCoords);
3563
Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y),
ToolStripPointType
.ToolStripCoords,
ToolStripPointType
.ToolStripItemCoords);
3610
Point itemRelativePoint = item.TranslatePoint(new Point(mea.X, mea.Y),
ToolStripPointType
.ToolStripCoords,
ToolStripPointType
.ToolStripItemCoords);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (6)
122
Rectangle ownerItemBounds = new Rectangle(TranslatePoint(Point.Empty,
ToolStripPointType
.ToolStripItemCoords,
ToolStripPointType
.ScreenCoords), Size);
341
Point itemScreenLocation = this.TranslatePoint(Point.Empty,
ToolStripPointType
.ToolStripItemCoords,
ToolStripPointType
.ScreenCoords);
387
Rectangle itemScreenBounds = new Rectangle(this.TranslatePoint(Point.Empty,
ToolStripPointType
.ToolStripItemCoords,
ToolStripPointType
.ScreenCoords), this.Size);
winforms\Managed\System\WinForms\ToolStripGrip.cs (8)
145
startLocation = TranslatePoint(new Point(mea.X, mea.Y),
ToolStripPointType
.ToolStripItemCoords,
ToolStripPointType
.ScreenCoords);
155
Point currentLocation = TranslatePoint(mea.Location,
ToolStripPointType
.ToolStripItemCoords,
ToolStripPointType
.ScreenCoords);
178
Point endLocation = TranslatePoint(new Point(mea.X, mea.Y),
ToolStripPointType
.ToolStripItemCoords,
ToolStripPointType
.ScreenCoords);
229
Point endLocation = TranslatePoint(new Point(mea.X, mea.Y),
ToolStripPointType
.ToolStripItemCoords,
ToolStripPointType
.ScreenCoords);
winforms\Managed\System\WinForms\ToolStripItem.cs (10)
2750
Point rectangleLocation = this.TranslatePoint(r.Location,
ToolStripPointType
.ToolStripItemCoords,
ToolStripPointType
.ToolStripCoords);
3840
internal Point TranslatePoint(Point fromPoint,
ToolStripPointType
fromPointType,
ToolStripPointType
toPointType) {
3861
if (fromPointType ==
ToolStripPointType
.ScreenCoords) {
3866
if (toPointType ==
ToolStripPointType
.ToolStripItemCoords) {
3875
if (fromPointType ==
ToolStripPointType
.ToolStripItemCoords) {
3883
if (toPointType ==
ToolStripPointType
.ScreenCoords) {
3887
else if (toPointType ==
ToolStripPointType
.ToolStripItemCoords) {
3893
Debug.Assert((toPointType ==
ToolStripPointType
.ToolStripCoords), "why are we here! - investigate");
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (2)
113
Rectangle itemBounds = new Rectangle(toolStrip.PointToClient(ownerItem.TranslatePoint(Point.Empty,
ToolStripPointType
.ToolStripItemCoords,
ToolStripPointType
.ScreenCoords)), ownerItem.Size);