Vcl.DBCtrls.TDBEdit.AutoSize

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AutoSize: Boolean read FAutoSize write SetAutoSize default 1;

C++

__property AutoSize = {default=1};

Properties

Type Visibility Source Unit Parent
property published
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBEdit

Description

Determines whether the height of the edit control automatically resizes to accommodate the text.

Vcl.DBCtrls.TDBEdit.AutoSize inherits from Vcl.StdCtrls.TCustomEdit.AutoSize. All content below this line refers to Vcl.StdCtrls.TCustomEdit.AutoSize.

Determines whether the height of the edit control automatically resizes to accommodate the text.

Use AutoSize to make the edit control adjust its size automatically so the client area accommodates the height of the text. When AutoSize is false, the edit control has a fixed height. When AutoSize is true, the size of the control is readjusted whenever a change occurs that could affect the height of the control, such as a change to the font or border style.

Note: AutoSize only adjusts the height of the edit control. Even with AutoSize set to true, text in the edit control may appear truncated if it extends beyond the width of the control.

See Also

Code Examples