2 writes to Offset2X
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
589
Offset2X
= ScaleHelper.ScaleToInitialSystemDpi(OFFSET_2PIXELS);
599
Offset2X
= ScaleHelper.ScaleToDpi(OFFSET_2PIXELS, dpi);
22 references to Offset2X
System.Windows.Forms (22)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (12)
195
middle.X -
Offset2X
,
197
middle.X +
Offset2X
,
200
middle.X -
Offset2X
+ 1 + rightToLeftShift,
202
middle.X +
Offset2X
+ 1 + rightToLeftShift,
1657
new(middle.X -
Offset2X
, middle.Y + 1),
1658
new(middle.X +
Offset2X
+ 1, middle.Y + 1),
1663
new(middle.X +
Offset2X
, middle.Y - Offset2Y - 1),
1664
new(middle.X +
Offset2X
, middle.Y + Offset2Y + 1),
1669
new(middle.X -
Offset2X
, middle.Y - Offset2Y - 1),
1670
new(middle.X -
Offset2X
, middle.Y + Offset2Y + 1),
1675
new(middle.X -
Offset2X
, middle.Y - 1),
1676
new(middle.X +
Offset2X
+ 1, middle.Y - 1),
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (10)
636
int horizontalOffset = ScaleHelper.IsScalingRequirementMet ? s_offset4X -
Offset2X
:
Offset2X
;
642
new(middle.X -
Offset2X
, middle.Y + 1),
643
new(middle.X +
Offset2X
+ 1, middle.Y + 1),
648
new(middle.X +
Offset2X
, middle.Y - s_offset4Y),
649
new(middle.X +
Offset2X
, middle.Y + s_offset4Y),
654
new(middle.X -
Offset2X
, middle.Y - s_offset4Y),
655
new(middle.X -
Offset2X
, middle.Y + s_offset4Y),
660
new(middle.X -
Offset2X
, middle.Y - 1),
661
new(middle.X +
Offset2X
+ 1, middle.Y - 1),