MaskFormat MaskFormat MaskFormat MaskFormat Enum

定义

定义如何格式化 MaskedTextBox 中的文本。Defines how to format the text inside of a MaskedTextBox.

public enum class MaskFormat
public enum MaskFormat
type MaskFormat = 
Public Enum MaskFormat
继承

字段

ExcludePromptAndLiterals ExcludePromptAndLiterals ExcludePromptAndLiterals ExcludePromptAndLiterals 0

只返回用户输入的文本。Return only text input by the user.

IncludeLiterals IncludeLiterals IncludeLiterals IncludeLiterals 2

返回用户输入的文本以及掩码中定义的任意文本字符。Return text input by the user as well as any literal characters defined in the mask.

IncludePrompt IncludePrompt IncludePrompt IncludePrompt 1

返回用户输入的文本以及提示字符的任意实例。Return text input by the user as well as any instances of the prompt character.

IncludePromptAndLiterals IncludePromptAndLiterals IncludePromptAndLiterals 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.

注解

此枚举由CutCopyMaskFormatTextMaskFormat来控制文本的返回方式-在第一种情况下,通过执行剪切和复制操作,并在第二个位置中,通过使用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.

适用于

另请参阅