Control.ScaleChildren 屬性

定義

取得值,以判斷子控制項的縮放。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

屬性值

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.

適用於

另請參閱