30 references to MaskFormat
System.Windows.Forms (20)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (20)
374
[DefaultValue(
MaskFormat
.IncludeLiterals)]
375
public
MaskFormat
CutCopyMaskFormat
383
return
MaskFormat
.IncludePromptAndLiterals;
386
return
MaskFormat
.IncludePrompt;
391
return
MaskFormat
.IncludeLiterals;
394
return
MaskFormat
.ExcludePromptAndLiterals;
402
if (value ==
MaskFormat
.IncludePrompt)
407
else if (value ==
MaskFormat
.IncludeLiterals)
414
bool include = value ==
MaskFormat
.IncludePromptAndLiterals;
1279
[DefaultValue(
MaskFormat
.IncludeLiterals)]
1280
public
MaskFormat
TextMaskFormat
1288
return
MaskFormat
.IncludePromptAndLiterals;
1291
return
MaskFormat
.IncludePrompt;
1296
return
MaskFormat
.IncludeLiterals;
1299
return
MaskFormat
.ExcludePromptAndLiterals;
1316
if (value ==
MaskFormat
.IncludePrompt)
1321
else if (value ==
MaskFormat
.IncludeLiterals)
1328
bool include = value ==
MaskFormat
.IncludePromptAndLiterals;
1785
bool includePrompt = (CutCopyMaskFormat &
MaskFormat
.IncludePrompt) != 0;
1786
bool includeLiterals = (CutCopyMaskFormat &
MaskFormat
.IncludeLiterals) != 0;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
27
_cloneMtb.TextMaskFormat =
MaskFormat
.IncludePromptAndLiterals;
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\MaskedTextBoxDesignerTests.cs (2)
76
CutCopyMaskFormat =
MaskFormat
.IncludePrompt,
87
designMaskedTextBox.CutCopyMaskFormat.Should().Be(
MaskFormat
.IncludePrompt);
System.Windows.Forms.Tests (7)
MaskedTextBoxTests.cs (7)
312
[InlineData(
MaskFormat
.IncludeLiterals)]
313
[InlineData(
MaskFormat
.IncludePrompt)]
314
[InlineData(
MaskFormat
.IncludePromptAndLiterals)]
315
[InlineData(
MaskFormat
.ExcludePromptAndLiterals)]
316
public void MaskedTextBox_CutCopyAndTextMaskFormat_Set_GetReturnsExpected(
MaskFormat
value)
332
control.Invoking(c => c.CutCopyMaskFormat = (
MaskFormat
)4)
336
control.Invoking(c => c.TextMaskFormat = (
MaskFormat
)4)