MaskFormat 枚举
定义
定义如何格式化 MaskedTextBox 中的文本。Defines how to format the text inside of a MaskedTextBox.
public enum class MaskFormat
public enum MaskFormat
type MaskFormat =
Public Enum MaskFormat
- 继承
字段
ExcludePromptAndLiterals | 0 | 只返回用户输入的文本。Return only text input by the user. |
IncludeLiterals | 2 | 返回用户输入的文本以及掩码中定义的任意文本字符。Return text input by the user as well as any literal characters defined in the mask. |
IncludePrompt | 1 | 返回用户输入的文本以及提示字符的任意实例。Return text input by the user as well as any instances of the prompt character. |
IncludePromptAndLiterals | 3 | 返回用户输入的文本、掩码中定义的任意文本字符以及提示字符的任意实例。Return text input by the user as well as any literal characters defined in the mask and any instances of the prompt character. |
注解
在第一种情况CutCopyMaskFormat下TextMaskFormat , 通过使用Text属性执行剪切和复制操作, 并在第二个位置使用此枚举来控制文本的返回方式。This enumeration is used by CutCopyMaskFormat and TextMaskFormat to control how text is returned - in the first case, by performing a cut and copy operation, and in the second place, by using the Text property.