MaskedTextProvider.SkipLiterals Propriedade
Definição
Obtém ou define um valor que indica se as posições de caractere literal na máscara podem ser substituídas por seus mesmos valores.Gets or sets a value indicating whether literal character positions in the mask can be overwritten by their same values.
public:
property bool SkipLiterals { bool get(); void set(bool value); };
public bool SkipLiterals { get; set; }
member this.SkipLiterals : bool with get, set
Public Property SkipLiterals As Boolean
Valor da propriedade
true para permitir que os literais sejam adicionados de volta; caso contrário, false para não permitir que o usuário substitua caracteres literais.true to allow literals to be added back; otherwise, false to not allow the user to overwrite literal characters. O padrão é true.The default is true.
Comentários
As máscaras de entrada podem conter caracteres literais e editáveis.Input masks can contain literal and editable characters. Se for feita uma tentativa de adicionar um caractere de entrada à posição em uma máscara ocupada por um literal, o valor da SkipLiterals propriedade determinará o resultado.If an attempt is made to add an input character to the position in a mask occupied by a literal, the value of the SkipLiterals property determines the result.
Se essa propriedade for
true, é válido substituir um literal pelo mesmo valor ao adicionar caracteres de entrada.If this property istrue, it is valid to overwrite a literal with the same value when adding input characters. Por exemplo, um valor de caractere de barra invertida,'/', pode ser adicionado à terceira posição da máscara"00/00/000".For example, a forward slash character value,'/', could be added to the third position of the mask"00/00/000".Se essa propriedade for
false, não será válido atribuir qualquer valor a uma posição de máscara ocupada por um caractere literal.If this property isfalse, it is not valid to assign any value to a mask position occupied by a literal character.