Form.AutoScale Proprietà

Definizione

Attenzione

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

Attenzione

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

Ottiene o imposta un valore che indica se il form e i relativi controlli verranno automaticamente scalati in base all’altezza del tipo di carattere usato nel form.

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

Valore della proprietà

true se il form e i relativi controlli verranno automaticamente scalati in base al tipo di carattere attualmente assegnato al form; in caso contrario, false. Il valore predefinito è true.

Attributi

Commenti

Importante

è AutoScale obsoleto ed è stato mantenuto per la compatibilità con le versioni precedenti. L'alternativa non obsoleta è ContainerControl.AutoScaleMode. Per altre informazioni sul ridimensionamento automatico, vedere Scalabilità automatica in Windows Forms.

È possibile utilizzare questa proprietà per consentire al modulo e ai relativi controlli di regolare automaticamente in base alle modifiche apportate al tipo di carattere. Ciò può essere utile nelle applicazioni in cui il tipo di carattere può aumentare o diminuire in base alla lingua specificata per l'uso da parte di Windows.

Per ottenere le dimensioni in cui verrà ridimensionato automaticamente il modulo, utilizzare la AutoScaleBaseSize proprietà . Se si desidera determinare le dimensioni del modulo, il ridimensionamento automatico verrà eseguito in base a un tipo di carattere specifico, utilizzare il GetAutoScaleSize metodo .

Si applica a