ContainerControl.PerformAutoScale Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Performs scaling of the container control and its children.

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

public void PerformAutoScale()

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

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.

.NET Framework
Available since 2.0
Return to top
Show: