ToolStripRenderer.ScaleArrowOffsetsIfNeeded ToolStripRenderer.ScaleArrowOffsetsIfNeeded ToolStripRenderer.ScaleArrowOffsetsIfNeeded ToolStripRenderer.ScaleArrowOffsetsIfNeeded Method

定义

重载

ScaleArrowOffsetsIfNeeded() ScaleArrowOffsetsIfNeeded() ScaleArrowOffsetsIfNeeded() ScaleArrowOffsetsIfNeeded()

如果需要基于计算机的 DPI 设置来进行缩放,则将 Offset2XOffset2Y 值应用于缩放箭头图标。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) ScaleArrowOffsetsIfNeeded(Int32) ScaleArrowOffsetsIfNeeded(Int32) ScaleArrowOffsetsIfNeeded(Int32)

基于指定的 DPI 值将 Offset2XOffset2Y 值应用于缩放箭头图标。Applies the Offset2X and Offset2Y values to scaling the arrow icon based on the specified DPI value.

ScaleArrowOffsetsIfNeeded() ScaleArrowOffsetsIfNeeded() ScaleArrowOffsetsIfNeeded() ScaleArrowOffsetsIfNeeded()

如果需要基于计算机的 DPI 设置来进行缩放,则将 Offset2XOffset2Y 值应用于缩放箭头图标。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 ()

ScaleArrowOffsetsIfNeeded(Int32) ScaleArrowOffsetsIfNeeded(Int32) ScaleArrowOffsetsIfNeeded(Int32) ScaleArrowOffsetsIfNeeded(Int32)

基于指定的 DPI 值将 Offset2XOffset2Y 值应用于缩放箭头图标。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)

参数

dpi
Int32 Int32 Int32 Int32

用于缩放的 DPI 值。The DPI value to use for scaling.

注解

仅当应用程序在 .NET Framework 4.7.1 或更高版本中使用,并且启用了 @no__t 2 和 @no__t 3 配置开关时,才应在派生类中调用 ScaleArrowOffsetsIfNeeded 方法的重载。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. 它将关于新的 DPI 通知 ToolStripRenderer,并允许计算正确尺寸中的呈现箭头偏移量。It informs the ToolStripRenderer about the new DPI and allows the offsets for rendering arrows in the right dimensions to be calculated.

适用于