ImageEn, unit iexLayers

TIETextLayer.Text

TIETextLayer.Text


Declaration


property Text: String;


Description


Specifies the displayed text.

Note:
- The default text for new layers is specified by DefaultLayerText
- Setting Text has no effect if IsRuler is enabled
- If you have enabled Rich Text formatting, then use RichText to specify the text


Example


// Append a text layer
ImageEnView1.LayersAdd( ielkText );
TIETextLayer( ImageEnView1.CurrentLayer ).Text := 'This is a Text Layer';
TIETextLayer( ImageEnView1.CurrentLayer ).BorderColor := clBlack;
TIETextLayer( ImageEnView1.CurrentLayer ).BorderWidth := 1;
TIETextLayer( ImageEnView1.CurrentLayer ).FillColor := clWhite;
ImageEnView1.Update();




See Also


- SizeToText
- AutoSize
- TextOverflow
- RichText
- EnableFormatting