winforms\Managed\System\WinForms\MaskedTextBox.cs (26)
416DefaultValue(MaskFormat.IncludeLiterals)
418public MaskFormat CutCopyMaskFormat
426return MaskFormat.IncludePromptAndLiterals;
429return MaskFormat.IncludePrompt;
434return MaskFormat.IncludeLiterals;
437return MaskFormat.ExcludePromptAndLiterals;
443if (!ClientUtils.IsEnumValid(value, (int)value, (int)MaskFormat.ExcludePromptAndLiterals, (int)MaskFormat.IncludePromptAndLiterals))
445throw new InvalidEnumArgumentException("value", (int)value, typeof(MaskFormat));
448if( value == MaskFormat.IncludePrompt )
453else if( value == MaskFormat.IncludeLiterals )
460bool include = value == MaskFormat.IncludePromptAndLiterals;
1457DefaultValue(MaskFormat.IncludeLiterals)
1459public MaskFormat TextMaskFormat
1467return MaskFormat.IncludePromptAndLiterals;
1470return MaskFormat.IncludePrompt;
1475return MaskFormat.IncludeLiterals;
1478return MaskFormat.ExcludePromptAndLiterals;
1489if (!ClientUtils.IsEnumValid(value, (int)value, (int)MaskFormat.ExcludePromptAndLiterals, (int)MaskFormat.IncludePromptAndLiterals))
1491throw new InvalidEnumArgumentException("value", (int)value, typeof(MaskFormat));
1498if( value == MaskFormat.IncludePrompt )
1503else if( value == MaskFormat.IncludeLiterals )
1510bool include = value == MaskFormat.IncludePromptAndLiterals;
1993bool includePrompt = (CutCopyMaskFormat & MaskFormat.IncludePrompt ) != 0;
1994bool includeLiterals = (CutCopyMaskFormat & MaskFormat.IncludeLiterals) != 0;