93 lines
4.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<Type Name="AutoValidate" FullName="System.Windows.Forms.AutoValidate">
<TypeSignature Language="C#" Value="public enum AutoValidate" />
<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>If a user switches focus off of a Windows Forms control, the control will use <see cref="T:System.Windows.Forms.AutoValidate" /> to determine how to validate its data. This type of validation is called implicit validation, because it occurs without the application developer having to make an explicit call to <see cref="M:System.Windows.Forms.ContainerControl.Validate" /> or <see cref="M:System.Windows.Forms.ContainerControl.ValidateChildren" />.</para>
<para>The property corresponding to this value will have different defaults based on the type of control. For more information, see <format type="text/html"><a href="4ec07681-1dee-4bf9-be5e-718f635a33a1">User Input Validation in Windows Forms (Windows Forms)</a></format>.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Determines how a control validates its data when it loses user input focus.</para>
</summary>
</Docs>
<Members>
<Member MemberName="Disable">
<MemberSignature Language="C#" Value="Disable" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.Windows.Forms.AutoValidate</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Implicit validation will not occur. Setting this value will not interfere with explicit calls to <see cref="M:System.Windows.Forms.ContainerControl.Validate" /> or <see cref="M:System.Windows.Forms.ContainerControl.ValidateChildren" />.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="EnableAllowFocusChange">
<MemberSignature Language="C#" Value="EnableAllowFocusChange" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.Windows.Forms.AutoValidate</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Implicit validation occurs, but if validation fails, focus will still change to the new control. If validation fails, the <see cref="E:System.Windows.Forms.Control.Validated" /> event will not fire.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
<Member MemberName="EnablePreventFocusChange">
<MemberSignature Language="C#" Value="EnablePreventFocusChange" />
<MemberType>Field</MemberType>
<ReturnValue>
<ReturnType>System.Windows.Forms.AutoValidate</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Implicit validation occurs when the control loses focus.</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.AutoValidate</ReturnType>
</ReturnValue>
<Docs>
<since version=".NET 2.0" />
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The control inherits its <see cref="T:System.Windows.Forms.AutoValidate" /> behavior from its container (such as a form or another control). If there is no container control, it defaults to <see cref="F:System.Windows.Forms.AutoValidate.EnablePreventFocusChange" />.</para>
</summary>
</Docs>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
</Member>
</Members>
</Type>