ButtonBase.IsDefault 속성

정의

단추 컨트롤이 기본 단추인지 여부를 나타내는 값을 가져오거나 설정합니다.

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

속성 값

Boolean

단추 컨트롤이 기본 단추이면 true이고, 그렇지 않으면 false입니다.

설명

속성이 IsDefault 설정 true되면 단추는 .에 대한 Form기본 단추입니다. 즉, Enter 키를 캡처하는 다른 단추 또는 다른 컨트롤에 포커스가 없는 경우 Enter 키를 누를 때 단추를 클릭합니다.

폼의 기본 단추를 지정하려면 폼의 속성을 원하는 단추로 설정합니다 AcceptButton .

적용 대상

추가 정보