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 否則。