Support.ToPixelsUserY(Double, Double, Double, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862
将 Visual Basic 6.0 ScaleTop 度量转换为像素度量。
public:
static double ToPixelsUserY(double Y, double ScaleTop, double ScaleHeight, int OriginalHeightInPixels);
public static double ToPixelsUserY(double Y, double ScaleTop, 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 ToPixelsUserY(double Y, double ScaleTop, double ScaleHeight, int OriginalHeightInPixels);
static member ToPixelsUserY : double * 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 ToPixelsUserY : double * double * double * int -> double
Public Function ToPixelsUserY (Y As Double, ScaleTop As Double, ScaleHeight As Double, OriginalHeightInPixels As Integer) As Double
参数
- OriginalHeightInPixels
- Int32
一个 Integer 表示高度(以像素为单位)。
返回
包含转换后的 Visual Basic 6.0 Double 的 ScaleLeft。
- 属性
注解
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 实现明显不同时,它们才是必需的。