TextBox.Numeric 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示输入是否必须为完全数值。 默认值为 false。 此 API 已过时。 有关如何开发 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 不支持此属性。