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
◼AutoSize does not consider the
BorderShape
Default: False
Example
// Enable auto-sizing of the current text layer
TIETextLayer( ImageEnView1.CurrentLayer ).AutoSize := True;
See Also
◼SizeToText
◼TextOverflow
◼MaxWidth
◼WordWrap