System.Windows.Forms.ContainerControl.PerformAutoScale Method

Performs scaling of the container control and its children.

Syntax

public void PerformAutoScale ()

Remarks

An explicit call to the ContainerControl.PerformAutoScale method is typically only required after programmatic changes to the layout during run time. ContainerControl.PerformAutoScale is implicitly called from the ContainerControl.OnLayout(LayoutEventArgs) method.

ContainerControl.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.

For more information about automatic scaling, see Automatic Scaling in Windows Forms.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0