Support.ToPixelsUserWidth(Double, Double, Int32) 方法

定义

注意

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

将 Visual Basic 6.0 ScaleWidth 度量转换为像素度量。

public:
 static double ToPixelsUserWidth(double Width, double ScaleWidth, int OriginalWidthInPixels);
public static double ToPixelsUserWidth(double Width, double ScaleWidth, int OriginalWidthInPixels);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static double ToPixelsUserWidth(double Width, double ScaleWidth, int OriginalWidthInPixels);
static member ToPixelsUserWidth : double * double * int -> double
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member ToPixelsUserWidth : double * double * int -> double
Public Function ToPixelsUserWidth (Width As Double, ScaleWidth As Double, OriginalWidthInPixels As Integer) As Double

参数

Width
Double

表示宽度的 A Double

ScaleWidth
Double

一个 Double,表示当前 ScaleWidth 的 Visual Basic 6.0 ScaleMode

OriginalWidthInPixels
Int32

一个 Integer 表示宽度(以像素为单位)。

返回

包含转换后的 Visual Basic 6.0 DoubleScaleWidth

属性

注解

Visual Basic 6.0 支持由 ScaleMode 属性定义的多个坐标系。 这包括用户定义的值。 Visual Basic仅支持基于像素的坐标系。 升级工具使用此函数在像素和用户定义的缩放值之间进行转换。

注释

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象由用于从 Visual Basic 6.0 升级到 Visual Basic 2008 的工具使用。 在大多数情况下,这些函数和对象重复了可在 .NET Framework 中的其他命名空间中找到的功能。 仅当 Visual Basic 6.0 代码模型与 .NET Framework 实现明显不同时,它们才是必需的。

适用于