Declaration
property AutoSize: boolean;
Description
Use
AutoSize to make the layer automatically adjust the size to accommodate the width of the text.
When
AutoSize is
false, the text layer has a fixed size (i.e. is not automatically adjusted).
When
AutoSize is
true, the size of the layer is re-adjusted whenever the user edits the text.
Note:
◼By default, auto-sizing will widen the text to the maxumum available space. Use
MaxWidth to constrain the text layer width (cause it to lengthen when
wrapped)
◼AutoSize should not be used if
AspectRatioLocked is true
Default: False
// Enable auto-sizing of the current text layer
TIETextLayer( ImageEnView1.CurrentLayer ).AutoSize := True;
See Also
◼SizeToText◼TextOverflow◼MaxWidth◼WordWrap