30 references to MaskFormat
System.Windows.Forms (20)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (20)
372[DefaultValue(MaskFormat.IncludeLiterals)] 373public MaskFormat CutCopyMaskFormat 381return MaskFormat.IncludePromptAndLiterals; 384return MaskFormat.IncludePrompt; 389return MaskFormat.IncludeLiterals; 392return MaskFormat.ExcludePromptAndLiterals; 400if (value == MaskFormat.IncludePrompt) 405else if (value == MaskFormat.IncludeLiterals) 412bool include = value == MaskFormat.IncludePromptAndLiterals; 1277[DefaultValue(MaskFormat.IncludeLiterals)] 1278public MaskFormat TextMaskFormat 1286return MaskFormat.IncludePromptAndLiterals; 1289return MaskFormat.IncludePrompt; 1294return MaskFormat.IncludeLiterals; 1297return MaskFormat.ExcludePromptAndLiterals; 1314if (value == MaskFormat.IncludePrompt) 1319else if (value == MaskFormat.IncludeLiterals) 1326bool include = value == MaskFormat.IncludePromptAndLiterals; 1781bool includePrompt = (CutCopyMaskFormat & MaskFormat.IncludePrompt) != 0; 1782bool 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)
76CutCopyMaskFormat = MaskFormat.IncludePrompt, 87designMaskedTextBox.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)] 316public void MaskedTextBox_CutCopyAndTextMaskFormat_Set_GetReturnsExpected(MaskFormat value) 332control.Invoking(c => c.CutCopyMaskFormat = (MaskFormat)4) 336control.Invoking(c => c.TextMaskFormat = (MaskFormat)4)