다음을 통해 공유


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 설정된 InsertMaskedTextBox 경우 삽입 모드에서 작동합니다. 속성은 IsOverwriteMode .의 실제 삽입 모드에 액세스합니다 MaskedTextBox.

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

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

적용 대상

추가 정보