_OlkTextBox.AutoSize Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns or sets a Boolean (bool in C#) that automatically sizes the control to display the entire contents. Read/write.
public:
property bool AutoSize { bool get(); void set(bool value); };
public bool AutoSize { get; set; }
Public Property AutoSize As Boolean
Property Value
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.