ToolsOptionsBaseControl<TOptions>.ValidateNumeric Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Valide la valeur actuelle du contrôle numérique donné et affiche un message si la valeur n'est pas valide.
protected:
virtual bool ValidateNumeric(System::Windows::Forms::NumericUpDown ^ numControl, System::String ^ errMessageToShow);
protected virtual bool ValidateNumeric (System.Windows.Forms.NumericUpDown numControl, string errMessageToShow);
abstract member ValidateNumeric : System.Windows.Forms.NumericUpDown * string -> bool
override this.ValidateNumeric : System.Windows.Forms.NumericUpDown * string -> bool
Protected Overridable Function ValidateNumeric (numControl As NumericUpDown, errMessageToShow As String) As Boolean
Paramètres
- numControl
- NumericUpDown
Objet NumericUpDown.
- errMessageToShow
- String
Chaîne qui contient le message d'erreur.
Retours
Valeur booléenne, True si la valeur de contrôle est valide, False dans le cas contraire.