共用方式為


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 度量轉換為像素度量。

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

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 實作有顯著差異時,才會需要這些函式和物件。

適用於