Bagikan melalui


Form.GetAutoScaleSize(Font) Metode

Definisi

Perhatian

This method has been deprecated. Use the AutoScaleDimensions property instead. http://go.microsoft.com/fwlink/?linkid=14202

Perhatian

This method has been deprecated. Use the AutoScaleDimensions property instead. https://go.microsoft.com/fwlink/?linkid=14202

Mendapatkan ukuran saat menskalakan formulir secara otomatis berdasarkan font tertentu.

public:
 static System::Drawing::SizeF GetAutoScaleSize(System::Drawing::Font ^ font);
public static System.Drawing.SizeF GetAutoScaleSize(System.Drawing.Font font);
[System.Obsolete("This method has been deprecated. Use the AutoScaleDimensions property instead.  http://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Drawing.SizeF GetAutoScaleSize(System.Drawing.Font font);
[System.Obsolete("This method has been deprecated. Use the AutoScaleDimensions property instead.  https://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Drawing.SizeF GetAutoScaleSize(System.Drawing.Font font);
static member GetAutoScaleSize : System.Drawing.Font -> System.Drawing.SizeF
[<System.Obsolete("This method has been deprecated. Use the AutoScaleDimensions property instead.  http://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetAutoScaleSize : System.Drawing.Font -> System.Drawing.SizeF
[<System.Obsolete("This method has been deprecated. Use the AutoScaleDimensions property instead.  https://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetAutoScaleSize : System.Drawing.Font -> System.Drawing.SizeF
Public Shared Function GetAutoScaleSize (font As Font) As SizeF

Parameter

font
Font

Mewakili Font font untuk menentukan ukuran dasar formulir yang diskalakan otomatis.

Mengembalikan

yang SizeF mewakili ukuran formulir yang diskalakan otomatis.

Atribut

Keterangan

Penting

Metode GetAutoScaleSize ini usang. Anggota ini telah dipertahankan untuk kompatibilitas mundur. Untuk informasi selengkapnya tentang penskalaan otomatis, lihat Penskalaan Otomatis di Formulir Windows.

Anda dapat menggunakan metode ini untuk menentukan ukuran formulir akan diskalakan otomatis untuk font tertentu sebelum menerapkan font ke formulir. Jika Anda ingin menentukan ukuran formulir yang diskalakan otomatis berdasarkan font yang saat ini ditetapkan ke formulir, gunakan AutoScaleBaseSize properti .

Berlaku untuk

Lihat juga