ElementHost.AutoSize Property


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

Gets or sets a value indicating whether the control is automatically resized to display its entire contents.

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

public override bool AutoSize { get; set; }

Property Value

Type: System.Boolean

true if the control adjusts its size to closely fit its contents; otherwise, false. The default is true.

.NET Framework
Available since 3.0
Return to top