MaskedTextBox.InsertKeyMode 속성

정의

마스킹된 텍스트 상자 컨트롤의 텍스트 삽입 모드를 가져오거나 설정합니다.

public:
 property System::Windows::Forms::InsertKeyMode InsertKeyMode { System::Windows::Forms::InsertKeyMode get(); void set(System::Windows::Forms::InsertKeyMode value); };
public System.Windows.Forms.InsertKeyMode InsertKeyMode { get; set; }
member this.InsertKeyMode : System.Windows.Forms.InsertKeyMode with get, set
Public Property InsertKeyMode As InsertKeyMode

속성 값

현재 삽입 모드를 나타내는 InsertKeyMode 값입니다. 기본값은 Default입니다.

예외

이 속성을 설정할 때 잘못된 InsertKeyMode 값을 제공한 경우

설명

속성은 InsertKeyMode 컨트롤의 문자 삽입 동작을 제어합니다 MaskedTextBox . 이 속성의 상태는 항상 켜지거나, 항상 끄거나, 사용자의 키보드 설정을 준수하도록 설정할 수 있는 열거형으로 정의 InsertKeyMode 됩니다. 이 속성은 키보드의 삽입 모드를 대체합니다. 예를 들어 키보드가 덮어쓰기로 설정되어 있지만 InsertKeyMode 로 설정된 Insert경우 는 MaskedTextBox 삽입 모드에서 작동합니다. 속성은 IsOverwriteMode 의 실제 삽입 모드에 액세스합니다 MaskedTextBox.

를 변경 InsertKeyMode 하면 의 값 IsOverwriteModeMaskedTextBox 이 변경되면 이벤트가 발생합니다IsOverwriteModeChanged.

마스크가 설정되지 않은 경우에는 이 속성이 적용되지 않습니다.

적용 대상

추가 정보