-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy pathAutoScaleMode.xml
152 lines (147 loc) · 8.63 KB
/
AutoScaleMode.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<Type Name="AutoScaleMode" FullName="System.Windows.Forms.AutoScaleMode">
<TypeSignature Language="C#" Value="public enum AutoScaleMode" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed AutoScaleMode extends System.Enum" />
<TypeSignature Language="DocId" Value="T:System.Windows.Forms.AutoScaleMode" />
<TypeSignature Language="VB.NET" Value="Public Enum AutoScaleMode" />
<TypeSignature Language="F#" Value="type AutoScaleMode = " />
<TypeSignature Language="C++ CLI" Value="public enum class AutoScaleMode" />
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Docs>
<summary>Specifies the different types of automatic scaling modes supported by Windows Forms.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Windows.Forms.ContainerControl> class and classes derived from it, such as <xref: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 <xref: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 <xref:System.Windows.Forms.ContainerControl.AutoScaleMode%2A?displayProperty=nameWithType> property.
Most business applications should use the Font automatic scaling mode. The Dpi scaling mode is useful for graphics-based applications and is compatible with the default scaling used by the .NET Compact Framework.
> [!IMPORTANT]
> 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 <xref:System.Windows.Forms.Form.AutoScale%2A> property of the containing <xref:System.Windows.Forms.Form> to `true`, which will also implicitly set the <xref:System.Windows.Forms.ContainerControl.AutoScaleMode%2A?displayProperty=nameWithType> property to None. Conversely, setting the <xref:System.Windows.Forms.ContainerControl.AutoScaleMode%2A?displayProperty=nameWithType> property of a form will set <xref:System.Windows.Forms.Form.AutoScale%2A> to `false`, enabling the newer scaling mechanism introduced with the .NET Framework version 2.0.
Note that for Smartphone applications, this enumeration requires Windows Mobile Version 5.0 software for Smartphones.
]]></format>
</remarks>
<altmember cref="P:System.Windows.Forms.ContainerControl.AutoScaleMode" />
<altmember cref="T:System.Windows.Forms.BoundsSpecified" />
</Docs>
<Members>
<Member MemberName="Dpi">
<MemberSignature Language="C#" Value="Dpi" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.AutoScaleMode Dpi = int32(2)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.AutoScaleMode.Dpi" />
<MemberSignature Language="VB.NET" Value="Dpi" />
<MemberSignature Language="F#" Value="Dpi = 2" Usage="System.Windows.Forms.AutoScaleMode.Dpi" />
<MemberSignature Language="C++ CLI" Value="Dpi" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.AutoScaleMode</ReturnType>
</ReturnValue>
<MemberValue>2</MemberValue>
<Docs>
<summary>Controls scale relative to the display resolution. Common resolutions are 96 and 120 DPI.</summary>
</Docs>
</Member>
<Member MemberName="Font">
<MemberSignature Language="C#" Value="Font" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.AutoScaleMode Font = int32(1)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.AutoScaleMode.Font" />
<MemberSignature Language="VB.NET" Value="Font" />
<MemberSignature Language="F#" Value="Font = 1" Usage="System.Windows.Forms.AutoScaleMode.Font" />
<MemberSignature Language="C++ CLI" Value="Font" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.AutoScaleMode</ReturnType>
</ReturnValue>
<MemberValue>1</MemberValue>
<Docs>
<summary>Controls scale relative to the dimensions of the font the classes are using, which is typically the system font.</summary>
</Docs>
</Member>
<Member MemberName="Inherit">
<MemberSignature Language="C#" Value="Inherit" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.AutoScaleMode Inherit = int32(3)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.AutoScaleMode.Inherit" />
<MemberSignature Language="VB.NET" Value="Inherit" />
<MemberSignature Language="F#" Value="Inherit = 3" Usage="System.Windows.Forms.AutoScaleMode.Inherit" />
<MemberSignature Language="C++ CLI" Value="Inherit" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.AutoScaleMode</ReturnType>
</ReturnValue>
<MemberValue>3</MemberValue>
<Docs>
<summary>Controls scale according to the classes' parent's scaling mode. If there is no parent, automatic scaling is disabled.</summary>
</Docs>
</Member>
<Member MemberName="None">
<MemberSignature Language="C#" Value="None" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Windows.Forms.AutoScaleMode None = int32(0)" />
<MemberSignature Language="DocId" Value="F:System.Windows.Forms.AutoScaleMode.None" />
<MemberSignature Language="VB.NET" Value="None" />
<MemberSignature Language="F#" Value="None = 0" Usage="System.Windows.Forms.AutoScaleMode.None" />
<MemberSignature Language="C++ CLI" Value="None" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Windows.Forms</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Windows.Forms.AutoScaleMode</ReturnType>
</ReturnValue>
<MemberValue>0</MemberValue>
<Docs>
<summary>Automatic scaling is disabled.</summary>
</Docs>
</Member>
</Members>
</Type>