Control.ScaleChildren Control.ScaleChildren Control.ScaleChildren Control.ScaleChildren Property

定义

获取一个值,该值确定子控件的缩放。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

属性值

如果在调用该控件上的 true 方法时将缩放子控件,则为 Scale(Single);否则为 falsetrue if child controls will be scaled when the Scale(Single) method on this control is called; otherwise, false. 默认值为 trueThe default is true.

注解

如果ScaleChildren属性是true,然后Scale方法将以递归方式调用ScaleControl的子控件的每个方法。If the ScaleChildren property is true, then the Scale method will recursively call the ScaleControl method of each of its child controls.

默认实现ScaleChildren始终返回trueThe default implementation of ScaleChildren always returns true. 派生的类可以重写ScaleChildren以返回false以指示,缩放应不会对执行其子级。Derived classes can override ScaleChildren to return false to indicate that scaling should not be performed on their children.

适用于

另请参阅