ToolStripRenderer.ScaleArrowOffsetsIfNeeded Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ScaleArrowOffsetsIfNeeded() |
Applies the Offset2X and Offset2Y values to scaling the arrow icon, if scaling is required based on the DPI settings of the computer. |
ScaleArrowOffsetsIfNeeded(Int32) |
Applies the Offset2X and Offset2Y values to scaling the arrow icon based on the specified DPI value. |
ScaleArrowOffsetsIfNeeded()
protected:
static void ScaleArrowOffsetsIfNeeded();
protected static void ScaleArrowOffsetsIfNeeded ();
static member ScaleArrowOffsetsIfNeeded : unit -> unit
Protected Shared Sub ScaleArrowOffsetsIfNeeded ()
Applies to
ScaleArrowOffsetsIfNeeded(Int32)
protected:
static void ScaleArrowOffsetsIfNeeded(int dpi);
protected static void ScaleArrowOffsetsIfNeeded (int dpi);
static member ScaleArrowOffsetsIfNeeded : int -> unit
Protected Shared Sub ScaleArrowOffsetsIfNeeded (dpi As Integer)
Parameters
- dpi
- Int32
The DPI value to use for scaling.
Remarks
This overload of the ScaleArrowOffsetsIfNeeded
method should be called in a derived class only when an application opts into per-monitor version 2, targets .NET Framework 4.7.1 or later, and has the EnableDpiChangedMessageHandling
and EnableDpiChangedHighDpiImprovements
configuration switches turned on. It informs the ToolStripRenderer about the new DPI and allows the offsets for rendering arrows in the right dimensions to be calculated.