共用方式為


TextBox.Numeric 屬性

定義

取得或設定一個值,表示輸入是否必須完全數值。 預設值為 false。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

public:
 property bool Numeric { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(true)]
[System.ComponentModel.Browsable(true)]
public bool Numeric { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.ComponentModel.Browsable(true)>]
member this.Numeric : bool with get, set
Public Property Numeric As Boolean

屬性值

true如果輸入必須是完全數值的;否則,。 false

屬性

備註

並非所有標記語言都支援完全數值的使用者輸入。 例如,HTML 不支援此屬性。

適用於

另請參閱