Aracılığıyla paylaş


Form.GetAutoScaleSize(Font) Yöntem

Tanım

Dikkat

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

Dikkat

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

Form belirtilen yazı tipine göre otomatik ölçeklenirken boyutu alır.

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

Parametreler

font
Font

Font Formun otomatik olarak ölçeklendirilen temel boyutunu belirlemek için yazı tipini temsil eden bir.

Döndürülenler

SizeF Formun otomatik olarak ölçeklendirilen boyutunu temsil eden bir.

Öznitelikler

Açıklamalar

Önemli

GetAutoScaleSize Yöntemi kullanımdan kaldırıldı. Bu üye geriye dönük uyumluluk için korundu. Otomatik ölçeklendirme hakkında daha fazla bilgi için bkz. Windows Forms'da Otomatik Ölçeklendirme.

Yazı tipini forma uygulamadan önce formun belirli bir yazı tipi için otomatik olarak ölçekleneceğini belirlemek için bu yöntemi kullanabilirsiniz. Formun otomatik olarak ölçeklendirileceği boyutu, forma atanmış olan yazı tipine göre belirlemek istiyorsanız özelliğini kullanın AutoScaleBaseSize .

Şunlara uygulanır

Ayrıca bkz.