UserControl.AutoValidate 属性

定义

获取或设置当用户将焦点更改到另一个控件时控件如何执行验证。

public:
 virtual property System::Windows::Forms::AutoValidate AutoValidate { System::Windows::Forms::AutoValidate get(); void set(System::Windows::Forms::AutoValidate value); };
[System.ComponentModel.Browsable(true)]
public override System.Windows.Forms.AutoValidate AutoValidate { get; set; }
[<System.ComponentModel.Browsable(true)>]
member this.AutoValidate : System.Windows.Forms.AutoValidate with get, set
Public Overrides Property AutoValidate As AutoValidate

属性值

AutoValidate 枚举的一个成员。 UserControl 的默认值为 EnablePreventFocusChange

属性

适用于