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

參數

Width
Double

Double A代表寬度。

ScaleWidth
Double

Double代表目前ScaleMode的 Visual Basic 6.0 ScaleWidth

OriginalWidthInPixels
Int32

一個 Integer 代表像素寬度的符號。

傳回

一個包含轉換後的 Visual Basic 6.0 ScaleWidthDouble

屬性

備註

Visual Basic 6.0 支援由 ScaleMode 屬性定義的多座標系。 這包含了使用者定義的數值。 Visual Basic 僅支援以像素為基礎的座標系。 升級工具會用此函數在像素與使用者自訂縮放值之間轉換。

Note

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式與物件,供工具從 Visual Basic 6.0 升級至 Visual Basic 2008 使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。

適用於