2 writes to Offset2X
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ToolStripRenderer.cs (2)
684
Offset2X
= DpiHelper.LogicalToDeviceUnitsX(OFFSET_2PIXELS);
694
Offset2X
= DpiHelper.LogicalToDeviceUnits(OFFSET_2PIXELS, dpi);
22 references to Offset2X
System.Windows.Forms (22)
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (12)
182
middle.X - ToolStripRenderer.
Offset2X
,
184
middle.X + ToolStripRenderer.
Offset2X
,
187
middle.X - ToolStripRenderer.
Offset2X
+ 1 + rightToLeftShift,
189
middle.X + ToolStripRenderer.
Offset2X
+ 1 + rightToLeftShift,
1453
new Point(middle.X - ToolStripRenderer.
Offset2X
, middle.Y + 1),
1454
new Point(middle.X + ToolStripRenderer.
Offset2X
+ 1, middle.Y + 1),
1461
new Point(middle.X + ToolStripRenderer.
Offset2X
, middle.Y - ToolStripRenderer.Offset2Y - 1),
1462
new Point(middle.X + ToolStripRenderer.
Offset2X
, middle.Y + ToolStripRenderer.Offset2Y + 1),
1469
new Point(middle.X - ToolStripRenderer.
Offset2X
, middle.Y - ToolStripRenderer.Offset2Y - 1),
1470
new Point(middle.X - ToolStripRenderer.
Offset2X
, middle.Y + ToolStripRenderer.Offset2Y + 1),
1478
new Point(middle.X - ToolStripRenderer.
Offset2X
, middle.Y - 1),
1479
new Point(middle.X + ToolStripRenderer.
Offset2X
+ 1, middle.Y - 1),
winforms\Managed\System\WinForms\ToolStripRenderer.cs (10)
727
int horizontalOffset = DpiHelper.EnableToolStripHighDpiImprovements ? offset4X -
Offset2X
:
Offset2X
;
733
new Point(middle.X -
Offset2X
, middle.Y + 1),
734
new Point(middle.X +
Offset2X
+ 1, middle.Y + 1),
740
new Point(middle.X +
Offset2X
, middle.Y - offset4Y),
741
new Point(middle.X +
Offset2X
, middle.Y + offset4Y),
747
new Point(middle.X -
Offset2X
, middle.Y - offset4Y),
748
new Point(middle.X -
Offset2X
, middle.Y + offset4Y),
755
new Point(middle.X -
Offset2X
, middle.Y - 1),
756
new Point(middle.X +
Offset2X
+ 1, middle.Y - 1),