97 lines
5.2 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<Type Name="AutoScaleMode" FullName="System.Windows.Forms.AutoScaleMode">
<TypeSignature Language="C#" Value="public enum AutoScaleMode" />
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="T:System.Windows.Forms.ContainerControl" /> class and classes derived from it, such as <see cref="T:System.Windows.Forms.Form" />, can automatically resize themselves and their contents according to either the current system font or the resolution of the display, measured in dots per inch (DPI). The <see cref="T:System.Windows.Forms.AutoScaleMode" /> enumeration defines the automatic scaling modes supported by these classes and their derived types. A control's current mode can be accessed through its <see cref="P:System.Windows.Forms.ContainerControl.AutoScaleMode" /> property.</para>
<para>Most business applications should use the <see cref="F:System.Windows.Forms.AutoScaleMode.Font" /> automatic scaling mode. The <see cref="F:System.Windows.Forms.AutoScaleMode.Dpi" /> scaling mode is useful for graphics-based applications and is compatible with the default scaling used by the .NET Compact Framework.</para>
<block subset="none" type="note">
<para>In the .NET Framework versions 1.0 and 1.1, automatic scaling was supported using a simpler mechanism that always relied on the current system font. This mechanism is now obsolete but still supported for backward compatibility. You can obtain the older scaling behavior by setting the <see cref="P:System.Windows.Forms.Form.AutoScale" /> property of the containing <see cref="T:System.Windows.Forms.Form" /> to true, which will also implicitly set the <see cref="P:System.Windows.Forms.ContainerControl.AutoScaleMode" /> property to <see cref="F:System.Windows.Forms.AutoScaleMode.None" />. Conversely, setting the <see cref="P:System.Windows.Forms.ContainerControl.AutoScaleMode" /> property of a form will set <see cref="P:System.Windows.Forms.Form.AutoScale" /> to false, enabling the newer scaling mechanism introduced with the .NET Framework version 2.0.</para>
</block>
<para>Note that for Smartphone applications, this enumeration requires Windows Mobile Version 5.0 software for Smartphones.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Specifies the different types of automatic scaling modes supported by Windows Forms.</para>
</summary>
</Docs>
<Members>
<Member MemberName="Dpi">
<MemberSignature Language="C#" Value="Dpi" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.Windows.Forms.AutoScaleMode</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Controls scale relative to the display resolution. Common resolutions are 96 and 120 DPI.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Font">
<MemberSignature Language="C#" Value="Font" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.Windows.Forms.AutoScaleMode</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Controls scale relative to the dimensions of the font the classes are using, which is typically the system font.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="Inherit">
<MemberSignature Language="C#" Value="Inherit" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.Windows.Forms.AutoScaleMode</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Controls scale according to the classes' parent's scaling mode. If there is no parent, automatic scaling is disabled.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="None">
<MemberSignature Language="C#" Value="None" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.Windows.Forms.AutoScaleMode</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Automatic scaling is disabled.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
</Members>
</Type>