23 references to InsertKeyMode
System.Windows.Forms (8)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (8)
102private InsertKeyMode _insertMode; 160_insertMode = InsertKeyMode.Default; 508[DefaultValue(InsertKeyMode.Default)] 509public InsertKeyMode InsertKeyMode 561case InsertKeyMode.Overwrite: 564case InsertKeyMode.Insert: 567case InsertKeyMode.Default: 1864if (keyCode == Keys.Insert && e.Modifiers == Keys.None && _insertMode == InsertKeyMode.Default)
System.Windows.Forms.Tests (15)
MaskedTextBoxTests.cs (15)
384[InlineData(InsertKeyMode.Default)] 385[InlineData(InsertKeyMode.Insert)] 386[InlineData(InsertKeyMode.Overwrite)] 387public void MaskedTextBox_InsertKeyMode_Set_GetReturnsExpected(InsertKeyMode value) 401if (value != InsertKeyMode.Default) 403control.InsertKeyMode = InsertKeyMode.Default; 405control.InsertKeyMode.Should().Be(InsertKeyMode.Default); 427[InlineData(InsertKeyMode.Overwrite, "00000", true)] 428[InlineData(InsertKeyMode.Insert, "00000", false)] 429[InlineData(InsertKeyMode.Default, "00000", false)] 430public void MaskedTextBox_IsOverwriteMode_Get_ReturnsExpected(InsertKeyMode insertMode, string mask, bool expected) 438if (!Enum.IsDefined(typeof(InsertKeyMode), insertMode)) 461control.InsertKeyMode = InsertKeyMode.Insert; 466control.InsertKeyMode = InsertKeyMode.Overwrite; 471control.InsertKeyMode = InsertKeyMode.Insert;