Form.AutoScale Özellik

Tanım

Dikkat

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

Dikkat

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

Formun boyutunu formda kullanılan yazı tipinin yüksekliğine uyacak şekilde ayarlayıp ayarlamadığını belirten bir değer alır veya ayarlar ve denetimlerini ölçeklendirir.

public:
 property bool AutoScale { bool get(); void set(bool value); };
public bool AutoScale { get; set; }
[System.ComponentModel.Browsable(false)]
[System.Obsolete("This property has been deprecated. Use the AutoScaleMode property instead.  http://go.microsoft.com/fwlink/?linkid=14202")]
public bool AutoScale { get; set; }
[System.ComponentModel.Browsable(false)]
[System.Obsolete("This property has been deprecated. Use the AutoScaleMode property instead.  https://go.microsoft.com/fwlink/?linkid=14202")]
public bool AutoScale { get; set; }
member this.AutoScale : bool with get, set
[<System.ComponentModel.Browsable(false)>]
[<System.Obsolete("This property has been deprecated. Use the AutoScaleMode property instead.  http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.AutoScale : bool with get, set
[<System.ComponentModel.Browsable(false)>]
[<System.Obsolete("This property has been deprecated. Use the AutoScaleMode property instead.  https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.AutoScale : bool with get, set
Public Property AutoScale As Boolean

Özellik Değeri

true form kendisini ve denetimlerini forma atanan geçerli yazı tipine göre otomatik olarak ölçeklendirecekse; aksi takdirde , false. Varsayılan değer: true.

Öznitelikler

Açıklamalar

Önemli

AutoScale artık kullanımdan kaldırıldı ve geriye dönük uyumluluk için korundu. Eski olmayan alternatif ise şeklindedir ContainerControl.AutoScaleMode. Otomatik ölçeklendirme hakkında daha fazla bilgi için bkz. Windows Forms'de Otomatik Ölçeklendirme.

Formunuzun ve denetimlerinin yazı tipindeki değişikliklere göre otomatik olarak ayarlanmasını sağlamak için bu özelliği kullanabilirsiniz. Bu, yazı tipinin Windows tarafından kullanılmak üzere belirtilen dile göre artabileceği veya azalabileceği uygulamalarda yararlı olabilir.

Formun otomatik olarak ölçeklendirileceği boyutu elde etmek için özelliğini kullanın AutoScaleBaseSize . Formun belirli bir yazı tipine göre otomatik olarak ölçeklendirileceği boyutu belirlemek istiyorsanız yöntemini kullanın GetAutoScaleSize .

Şunlara uygulanır