ToolStripRenderer.ScaleArrowOffsetsIfNeeded Method
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.
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. |
- Source:
- ToolStripRenderer.cs
- Source:
- ToolStripRenderer.cs
- Source:
- ToolStripRenderer.cs
protected:
static void ScaleArrowOffsetsIfNeeded();
protected static void ScaleArrowOffsetsIfNeeded();
static member ScaleArrowOffsetsIfNeeded : unit -> unit
Protected Shared Sub ScaleArrowOffsetsIfNeeded ()
Applies to
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
- Source:
- ToolStripRenderer.cs
- Source:
- ToolStripRenderer.cs
- Source:
- ToolStripRenderer.cs
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
.NET Framework 4.8.1 and other versions
Product | Versions |
---|---|
.NET Framework | 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: