通过


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 不支持此属性。

适用于

另请参阅