ToolsOptionsBaseControl<TOptions>.ValidateNumeric Méthode

Définition

Valide la valeur actuelle du contrôle numérique donné, et affiche le 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

Une chaîne contenant un message d’erreur.

Retours

Une valeur booléenne, True si la valeur de contrôle est valide, False sinon.

S’applique à