30 references to MaskFormat
System.Windows.Forms (20)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (20)
374[DefaultValue(MaskFormat.IncludeLiterals)] 375public MaskFormat CutCopyMaskFormat 383return MaskFormat.IncludePromptAndLiterals; 386return MaskFormat.IncludePrompt; 391return MaskFormat.IncludeLiterals; 394return MaskFormat.ExcludePromptAndLiterals; 402if (value == MaskFormat.IncludePrompt) 407else if (value == MaskFormat.IncludeLiterals) 414bool include = value == MaskFormat.IncludePromptAndLiterals; 1279[DefaultValue(MaskFormat.IncludeLiterals)] 1280public MaskFormat TextMaskFormat 1288return MaskFormat.IncludePromptAndLiterals; 1291return MaskFormat.IncludePrompt; 1296return MaskFormat.IncludeLiterals; 1299return MaskFormat.ExcludePromptAndLiterals; 1316if (value == MaskFormat.IncludePrompt) 1321else if (value == MaskFormat.IncludeLiterals) 1328bool include = value == MaskFormat.IncludePromptAndLiterals; 1785bool includePrompt = (CutCopyMaskFormat & MaskFormat.IncludePrompt) != 0; 1786bool 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)
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)