ToolsOptionsBaseControl<TOptions>.ValidateNumeric 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
验证给定数值的当前值,若值无效则显示消息。
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
包含错误消息的字符串。
返回
如果控制值有效,则使用布尔值 True , False 否则。