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