ToolsOptionsBaseControl<TOptions>.ValidateNumeric 方法

定义

验证给定数值的当前值,若值无效则显示消息。

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

参数

numControl
NumericUpDown

NumericUpDown 对象。

errMessageToShow
String

包含错误消息的字符串。

返回

如果控制值有效,则使用布尔值 TrueFalse 否则。

适用于