Control.ScaleChildren Propriété
Définition
Obtient une valeur qui détermine la mise à l'échelle des contrôles enfants.Gets a value that determines the scaling of child controls.
protected:
virtual property bool ScaleChildren { bool get(); };
protected virtual bool ScaleChildren { get; }
member this.ScaleChildren : bool
Protected Overridable ReadOnly Property ScaleChildren As Boolean
Valeur de propriété
true
si les contrôles enfants sont mis à l'échelle quand la méthode Scale(Single) sur ce contrôle est appelée ; sinon, false
.true
if child controls will be scaled when the Scale(Single) method on this control is called; otherwise, false
. La valeur par défaut est true
.The default is true
.
Remarques
Si la propriété ScaleChildren est true
, la méthode Scale appellera de manière récursive la méthode ScaleControl de chacun de ses contrôles enfants.If the ScaleChildren property is true
, then the Scale method will recursively call the ScaleControl method of each of its child controls.
L’implémentation par défaut de ScaleChildren retourne toujours true
.The default implementation of ScaleChildren always returns true
. Les classes dérivées peuvent substituer ScaleChildren pour retourner false
afin d’indiquer que la mise à l’échelle ne doit pas être effectuée sur leurs enfants.Derived classes can override ScaleChildren to return false
to indicate that scaling should not be performed on their children.