OlkTextBox.AutoSize property (Outlook)

Returns or sets a Boolean that automatically sizes the control to display the entire contents. Read/write.

Syntax

expression.AutoSize

expression A variable that represents an OlkTextBox object.

Remarks

The default value for this property is False.

For a single-line text box, 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 text box 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 text box. For a multiline text box that contains text, setting AutoSize to True automatically extends the text box vertically to display the entire text. The width of the text box does not change.

See also

OlkTextBox Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.