Edit

Share via


ToolStripRenderer.ScaleArrowOffsetsIfNeeded Method

Definition

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()

Applies the Offset2X and Offset2Y values to scaling the arrow icon, if scaling is required based on the DPI settings of the computer.

protected:
 static void ScaleArrowOffsetsIfNeeded();
protected static void ScaleArrowOffsetsIfNeeded ();
static member ScaleArrowOffsetsIfNeeded : unit -> unit
Protected Shared Sub ScaleArrowOffsetsIfNeeded ()

Applies to

ScaleArrowOffsetsIfNeeded(Int32)

Applies the Offset2X and Offset2Y values to scaling the arrow icon based on the specified DPI value.

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.

Applies to