30 references to MaskFormat
System.Windows.Forms (20)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (20)
372
[DefaultValue(
MaskFormat
.IncludeLiterals)]
373
public
MaskFormat
CutCopyMaskFormat
381
return
MaskFormat
.IncludePromptAndLiterals;
384
return
MaskFormat
.IncludePrompt;
389
return
MaskFormat
.IncludeLiterals;
392
return
MaskFormat
.ExcludePromptAndLiterals;
400
if (value ==
MaskFormat
.IncludePrompt)
405
else if (value ==
MaskFormat
.IncludeLiterals)
412
bool include = value ==
MaskFormat
.IncludePromptAndLiterals;
1277
[DefaultValue(
MaskFormat
.IncludeLiterals)]
1278
public
MaskFormat
TextMaskFormat
1286
return
MaskFormat
.IncludePromptAndLiterals;
1289
return
MaskFormat
.IncludePrompt;
1294
return
MaskFormat
.IncludeLiterals;
1297
return
MaskFormat
.ExcludePromptAndLiterals;
1314
if (value ==
MaskFormat
.IncludePrompt)
1319
else if (value ==
MaskFormat
.IncludeLiterals)
1326
bool include = value ==
MaskFormat
.IncludePromptAndLiterals;
1781
bool includePrompt = (CutCopyMaskFormat &
MaskFormat
.IncludePrompt) != 0;
1782
bool includeLiterals = (CutCopyMaskFormat &
MaskFormat
.IncludeLiterals) != 0;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
25
_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)