1 <?xml version="1.0" encoding="utf-8"?>
2 <Type Name="AutoSizeMode" FullName="System.Windows.Forms.AutoSizeMode">
3 <TypeSignature Language="C#" Value="public enum AutoSizeMode" />
5 <AssemblyName>System.Windows.Forms</AssemblyName>
6 <AssemblyVersion>2.0.0.0</AssemblyVersion>
9 <BaseTypeName>System.Enum</BaseTypeName>
12 <since version=".NET 2.0" />
14 <attribution license="cc4" from="Microsoft" modified="false" />
15 <para>Setting the <see cref="F:System.Windows.Forms.AutoSizeMode.GrowAndShrink" /> value produces the same behavior that you get for controls with the <see cref="P:System.Windows.Forms.Control.AutoSize" /> property enabled but which have no </para>
16 <para>AutoSizeMode property. The <see cref="P:System.Windows.Forms.Control.MinimumSize" /> and <see cref="P:System.Windows.Forms.Control.MaximumSize" /> properties are respected, but the current value of the <see cref="P:System.Windows.Forms.Control.Size" /> property is ignored. </para>
19 <attribution license="cc4" from="Microsoft" modified="false" />
20 <para>Specifies how a control will behave when its <see cref="P:System.Windows.Forms.Control.AutoSize" /> property is enabled.</para>
24 <Member MemberName="GrowAndShrink">
25 <MemberSignature Language="C#" Value="GrowAndShrink" />
26 <MemberType>Field</MemberType>
28 <ReturnType>System.Windows.Forms.AutoSizeMode</ReturnType>
31 <since version=".NET 2.0" />
33 <attribution license="cc4" from="Microsoft" modified="false" />
34 <para>The control grows or shrinks to fit its contents. The control cannot be resized manually.</para>
38 <AssemblyVersion>2.0.0.0</AssemblyVersion>
41 <Member MemberName="GrowOnly">
42 <MemberSignature Language="C#" Value="GrowOnly" />
43 <MemberType>Field</MemberType>
45 <ReturnType>System.Windows.Forms.AutoSizeMode</ReturnType>
48 <since version=".NET 2.0" />
50 <attribution license="cc4" from="Microsoft" modified="false" />
51 <para>The control grows as much as necessary to fit its contents but does not shrink smaller than the value of its <see cref="P:System.Windows.Forms.Control.Size" /> property. The form can be resized, but cannot be made so small that any of its contained controls are hidden.</para>
55 <AssemblyVersion>2.0.0.0</AssemblyVersion>