Propriedade TextBox.AutoSize (Script do Outlook Forms)
Returns or sets a Boolean that specifies whether an object automatically resizes to display its entire contents. Leitura/gravação.
Sintaxe
expressão. Autosize
expression Uma variável que representa um objeto TextBox.
Comentários
True to automatically resize the control to display its entire contents. False to keep the size of the control constant; contents are clipped when they exceed the area of the control (default).
For controls without captions, this property specifies whether the control automatically adjusts to display the information stored in the control. In a ComboBox, for example, setting AutoSize to True automatically sets the width of the display area to match the length of the current text.
If you manually change the size of a control while AutoSize is True, the manual change overrides the size previously set by AutoSize.
For a single-line TextBox, setting AutoSize to True automatically sets the width of the display area to the length of the text in the text box.
For a multiline TextBox that contains no text, setting AutoSize to True automatically displays the text as a column. The width of the text column is set to accommodate the widest letter of that font size. The height of the text column is set to display the entire text of the TextBox.
For a multiline TextBox that contains text, setting AutoSize to True automatically enlarges the TextBox vertically to display the entire text. The width of the TextBox does not change.
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.