ImageEn, unit iexLayers

TIETextLayer.RichText

TIETextLayer.RichText


Declaration


property RichText: String;


Description


Specifies the displayed text as an RTF formatted string.
RichText is only used if EnableFormatting = true

Notes:
- The default text for new layers is specified by DefaultLayerText
- Setting RichText has no effect if IsRuler is enabled
- If you have not enabled Rich Text formatting, then use Text to specify the text
- If RichText is blank, then Text will be used
- A toolbar is displayed when editing the text of a layer. This can be disabled in LayerOptions


Rich Text Limitations


The following are unsupported when EnableFormatting=True
- A FillColor is required. If clNone is specified, the background will be white
- Text can only be rotated at 90 deg. angles
- A BorderRotate is not supported
- A TextOverflow is not supported
- Formatting is ignored when exporting to PDF or SVG


Demo


  Demos\LayerEditing\Layers_Text\TextLayers.dpr



Example


// Append a text layer
ImageEnView1.LayersAdd( ielkText );
TIETextLayer( ImageEnView1.CurrentLayer ).RichText := .... and RTF formatted string...;
TIETextLayer( ImageEnView1.CurrentLayer ).BorderColor := clBlack;
TIETextLayer( ImageEnView1.CurrentLayer ).BorderWidth := 1;
TIETextLayer( ImageEnView1.CurrentLayer ).FillColor := clWhite;
ImageEnView1.Update();




See Also


- SizeToText
- AutoSize
- TextOverflow
- Text
- EnableFormatting