ContainerControl.PerformAutoScale 方法

定义

执行对容器控件及其子级的缩放。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. PerformAutoScaleOnLayout方法隐式调用。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 窗体中的自动缩放For more information about automatic scaling, see Automatic Scaling in Windows Forms.

适用于

另请参阅