ButtonBase.IsDefault 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示按钮控件是否为默认按钮。
protected:
property bool IsDefault { bool get(); void set(bool value); };
protected public:
property bool IsDefault { bool get(); void set(bool value); };
protected bool IsDefault { get; set; }
protected internal bool IsDefault { get; set; }
member this.IsDefault : bool with get, set
Protected Property IsDefault As Boolean
Protected Friend Property IsDefault As Boolean
属性值
true 如果按钮控件是默认按钮,则为否则,为 false.
注解
当属性设置为
若要指定窗体的默认按钮,请将 AcceptButton 窗体的属性设置为所需按钮。