Support.ToPixelsUserHeight(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 度量值转换为像素度量值。Converts a Visual Basic 6.0 ScaleHeight measurement to a pixel measurement.

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

参数

Height
Double

一个表示高度的 DoubleA Double that represents the height.

ScaleHeight
Double

一个 Double,它表示当前 ScaleHeight 的 Visual Basic 6.0 ScaleModeA Double that represents the Visual Basic 6.0 ScaleHeight for the current ScaleMode.

OriginalHeightInPixels
Int32

一个表示以像素为单位的高度的 IntegerAn Integer that represents the height in pixels.

返回

Double

一个 Double,它包含已转换的 Visual Basic 6.0 ScaleHeightA Double that contains the converted Visual Basic 6.0 ScaleHeight.

属性

注解

Visual Basic 6.0 支持多个定义的坐标系统ScaleMode属性。Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. 这包括用户定义的值。This included a user-defined value. Visual Basic 仅支持基于像素坐标系统。Visual Basic only supports a coordinate system that is based on pixels. 升级工具使用此函数以像素为单位和用户定义的小数位值之间转换。This function is used by the upgrade tools to convert between pixels and a user-defined scale value.

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic 2008。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有当 Visual Basic 6.0 代码模型与 .NET Framework 实现有显著区别时,才必须使用这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

适用于