Compartilhar via


Propriedade TextBox.EnterFieldBehavior (Script do Outlook Forms)

Returns or sets an Integer that specifies the selection behavior when entering a TextBox. Leitura/gravação.

Sintaxe

expressão. EnterFieldBehavior

expression Uma variável que representa um objeto TextBox.

Comentários

The possible values of EnterFieldBehavior are 0 and 1. 0 represents selecting the entire contents of the edit region when entering the control (default). 1 represents leaving the selection unchanged. Visually, this uses the selection that was in effect the last time the control was active.

The EnterFieldBehavior property controls the way text is selected when the user tabs to the control, not when the control receives focus as a result of the SetFocus method. Following SetFocus, the contents of the control are not selected and the insertion point appears after the last character in the control's edit region.

You can combine the effects of the EnterFieldBehavior property and DragBehavior to create a large number of text box styles.

Suporte e comentários

Tem dúvidas ou quer enviar comentários sobre o VBA para Office ou sobre esta documentação? Confira Suporte e comentários sobre o VBA para Office a fim de obter orientação sobre as maneiras pelas quais você pode receber suporte e fornecer comentários.