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.

備註

如果屬性為trueScaleControl則方法會以遞迴方式呼叫其每個子控制項的方法。 Scale ScaleChildrenIf the ScaleChildren property is true, then the Scale method will recursively call the ScaleControl method of each of its child controls.

的預設執行ScaleChildren true一律會傳回。The default implementation of ScaleChildren always returns true. 衍生類別可以覆ScaleChildrenfalse以傳回,表示不應在其子系上執行縮放。Derived classes can override ScaleChildren to return false to indicate that scaling should not be performed on their children.

適用於

另請參閱