Skip to main content
A newer version of this page is available. .

TcxCustomEdit.AutoSize Property

Specifies whether an editor is resized to entirely display its contents.

Declaration

property AutoSize: Boolean read; write; default True;

Property Value

Type Default
Boolean True

Remarks

Use the AutoSize property to specify whether an editor sizes itself automatically. When AutoSize is set to True, the editor resizes automatically when its contents change. Most descendant editors which support auto sizing simply modify their height according to the changes. However, the TcxImage, TcxLabel and their data-aware versions, TcxDBImage and TcxDBLabel controls also adjust their widths. For instance, when you change the font of the text editor, its height is resized to the minimum value that allows all its text to be displayed. The TcxCustomImage editor also adjusts its width to accommodate the entire image.

The default value of the AutoSize property is True.

See Also