23 references to InsertKeyMode
System.Windows.Forms (8)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (8)
102
private
InsertKeyMode
_insertMode;
160
_insertMode =
InsertKeyMode
.Default;
508
[DefaultValue(
InsertKeyMode
.Default)]
509
public
InsertKeyMode
InsertKeyMode
561
case
InsertKeyMode
.Overwrite:
564
case
InsertKeyMode
.Insert:
567
case
InsertKeyMode
.Default:
1864
if (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)]
387
public void MaskedTextBox_InsertKeyMode_Set_GetReturnsExpected(
InsertKeyMode
value)
401
if (value !=
InsertKeyMode
.Default)
403
control.InsertKeyMode =
InsertKeyMode
.Default;
405
control.InsertKeyMode.Should().Be(
InsertKeyMode
.Default);
427
[InlineData(
InsertKeyMode
.Overwrite, "00000", true)]
428
[InlineData(
InsertKeyMode
.Insert, "00000", false)]
429
[InlineData(
InsertKeyMode
.Default, "00000", false)]
430
public void MaskedTextBox_IsOverwriteMode_Get_ReturnsExpected(
InsertKeyMode
insertMode, string mask, bool expected)
438
if (!Enum.IsDefined(typeof(
InsertKeyMode
), insertMode))
461
control.InsertKeyMode =
InsertKeyMode
.Insert;
466
control.InsertKeyMode =
InsertKeyMode
.Overwrite;
471
control.InsertKeyMode =
InsertKeyMode
.Insert;