AutoSize Property

ElementHost.AutoSize Property


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
© 2015 Microsoft