28 references to MaskFormat
System.Windows.Forms (20)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (20)
376
[DefaultValue(
MaskFormat
.IncludeLiterals)]
377
public
MaskFormat
CutCopyMaskFormat
385
return
MaskFormat
.IncludePromptAndLiterals;
388
return
MaskFormat
.IncludePrompt;
393
return
MaskFormat
.IncludeLiterals;
396
return
MaskFormat
.ExcludePromptAndLiterals;
404
if (value ==
MaskFormat
.IncludePrompt)
409
else if (value ==
MaskFormat
.IncludeLiterals)
416
bool include = value ==
MaskFormat
.IncludePromptAndLiterals;
1281
[DefaultValue(
MaskFormat
.IncludeLiterals)]
1282
public
MaskFormat
TextMaskFormat
1290
return
MaskFormat
.IncludePromptAndLiterals;
1293
return
MaskFormat
.IncludePrompt;
1298
return
MaskFormat
.IncludeLiterals;
1301
return
MaskFormat
.ExcludePromptAndLiterals;
1318
if (value ==
MaskFormat
.IncludePrompt)
1323
else if (value ==
MaskFormat
.IncludeLiterals)
1330
bool include = value ==
MaskFormat
.IncludePromptAndLiterals;
1787
bool includePrompt = (CutCopyMaskFormat &
MaskFormat
.IncludePrompt) != 0;
1788
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.Tests (7)
MaskedTextBoxTests.cs (7)
310
[InlineData(
MaskFormat
.IncludeLiterals)]
311
[InlineData(
MaskFormat
.IncludePrompt)]
312
[InlineData(
MaskFormat
.IncludePromptAndLiterals)]
313
[InlineData(
MaskFormat
.ExcludePromptAndLiterals)]
314
public void MaskedTextBox_CutCopyAndTextMaskFormat_Set_GetReturnsExpected(
MaskFormat
value)
330
control.Invoking(c => c.CutCopyMaskFormat = (
MaskFormat
)4)
334
control.Invoking(c => c.TextMaskFormat = (
MaskFormat
)4)