ContainerControl.PerformAutoScale ContainerControl.PerformAutoScale ContainerControl.PerformAutoScale ContainerControl.PerformAutoScale Method

定義

執行容器控制項及其子系的縮放。Performs scaling of the container control and its children.

public:
 void PerformAutoScale();
public void PerformAutoScale ();
member this.PerformAutoScale : unit -> unit
Public Sub PerformAutoScale ()

備註

只有在以程式設計PerformAutoScale方式變更執行時間的版面配置之後,才需要明確呼叫方法。An explicit call to the PerformAutoScale method is typically only required after programmatic changes to the layout during run time. PerformAutoScale會從OnLayout方法隱含呼叫。PerformAutoScale is implicitly called from the OnLayout method.

PerformAutoScale為遞迴;如果每個子控制項都是容器,則會在容器的版本執行時,將其版本的這個方法稱為。PerformAutoScale is recursive; each child control, if it is a container, will have its version of this method called when the container's version executes.

如需自動調整的詳細資訊,請參閱Windows Forms 中的自動調整For more information about automatic scaling, see Automatic Scaling in Windows Forms.

適用於

另請參閱