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 考慮して、常にオン、常にオフ、または設定できる列挙体によって定義されます。 このプロパティは、キーボードの挿入モードよりも優先されます。 たとえば、キーボードが上書きに設定されているが InsertKeyModeInsertMaskedTextBox設定されている場合、 は挿入モードで動作します。 プロパティは IsOverwriteMode 、 の真の挿入モードに MaskedTextBoxアクセスします。

を変更InsertKeyModeすると、 のIsOverwriteModeMaskedTextBox値が変更されると、 イベントが発生しますIsOverwriteModeChanged

マスクが設定されていない場合、このプロパティは無効です。

適用対象

こちらもご覧ください