Share via


Support.FromPixelsUserHeight(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 ScaleHeight 度量值。

public:
 static double FromPixelsUserHeight(double Height, double ScaleHeight, int OriginalHeightInPixels);
public static double FromPixelsUserHeight (double Height, double ScaleHeight, int OriginalHeightInPixels);
[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 FromPixelsUserHeight (double Height, double ScaleHeight, int OriginalHeightInPixels);
static member FromPixelsUserHeight : 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 FromPixelsUserHeight : double * double * int -> double
Public Function FromPixelsUserHeight (Height As Double, ScaleHeight As Double, OriginalHeightInPixels As Integer) As Double

参数

Height
Double

一个表示高度的 Double

ScaleHeight
Double

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

OriginalHeightInPixels
Int32

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

返回

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

属性

注解

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

适用于