MaskedTextProvider.FindUnassignedEditPositionInRange(Int32, Int32, Boolean) Método

Definição

Retorna a posição da primeira posição editável não atribuída entre as posições especificadas, usando a direção de pesquisa especificada.Returns the position of the first unassigned editable position between the specified positions using the specified search direction.

public:
 int FindUnassignedEditPositionInRange(int startPosition, int endPosition, bool direction);
public int FindUnassignedEditPositionInRange (int startPosition, int endPosition, bool direction);
member this.FindUnassignedEditPositionInRange : int * int * bool -> int
Public Function FindUnassignedEditPositionInRange (startPosition As Integer, endPosition As Integer, direction As Boolean) As Integer

Parâmetros

startPosition
Int32

A posição baseada em zero na cadeia de caracteres formatada na qual começa a pesquisa.The zero-based position in the formatted string where the search starts.

endPosition
Int32

A posição baseada em zero na cadeia de caracteres formatada na qual termina a pesquisa.The zero-based position in the formatted string where the search ends.

direction
Boolean

Um Boolean indicando a direção da pesquisa; true para pesquisar para frente ou false para pesquisar para trás.A Boolean indicating the search direction; either true to search forward or false to search backward.

Retornos

Int32

Se for bem-sucedida, um Int32 representando a posição baseada em zero da primeira posição editável não atribuída encontrada; caso contrário, InvalidIndex.If successful, an Int32 representing the zero-based position of the first unassigned editable position encountered; otherwise InvalidIndex.

Comentários

A cadeia de caracteres formatada é composta por caracteres editáveis e literais copiados da máscara.The formatted string is composed of editable characters and literals copied from the mask. As posições de caractere editáveis serão ocupadas pelo caractere de prompt copiado da máscara se não forem atribuídas ou com um caractere de entrada válido se tiverem sido atribuídas uma entrada.The editable character positions will either be occupied by the prompt character copied from the mask if they are unassigned, or with a valid input character if they have been assigned an input.

O FindUnassignedEditPositionInRange método é usado para pesquisar o primeiro caractere não atribuído entre duas posições especificadas, inclusive, usando a direção de pesquisa especificada.The FindUnassignedEditPositionInRange method is used to search for the first unassigned character between two specified positions, inclusive, using the specified search direction. O caractere de prompt deve ocupar essa posição.The prompt character should occupy this position.

Os FindNonEditPositionInRange FindAssignedEditPositionInRange métodos e são complementares desse método.The FindNonEditPositionInRange and FindAssignedEditPositionInRange methods are complements of this method.

Aplica-se a

Confira também