Support.FromPixelsUserWidth(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 FromPixelsUserWidth(double Width, double ScaleWidth, int OriginalWidthInPixels);
public static double FromPixelsUserWidth (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 FromPixelsUserWidth (double Width, double ScaleWidth, int OriginalWidthInPixels);
static member FromPixelsUserWidth : 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 FromPixelsUserWidth : double * double * int -> double
Public Function FromPixelsUserWidth (Width As Double, ScaleWidth As Double, OriginalWidthInPixels As Integer) As Double

参数

Width
Double

一个表示宽度的 Double

ScaleWidth
Double

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

OriginalWidthInPixels
Int32

一个表示以像素为单位的宽度的 Integer

返回

一个 Double,它包含已转换的 Visual Basic 6.0 ScaleWidth

属性

注解

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 实现有显著区别时,才必须使用这些函数和对象。

适用于