ImageEn, unit iexLayers

TIETextLayer.BorderShape

TIETextLayer.BorderShape


Declaration


property BorderShape: TIEShape;


Description


The shape around the text.

Default: iesRectangle


Example


// Add an elliptical text layer
ImageEnView1.LayersAdd( ielkText );
TIETextLayer( ImageEnView1.CurrentLayer ).Text := 'Text in Ellipse';
TIETextLayer( ImageEnView1.CurrentLayer ).BorderShape := iesEllipse;
ImageEnView1.Update();

// Add a "Shape" layer with text
ImageEnView1.LayersAdd( ielkText, 800, 300, 400, 400 );
ImageEnView1.CurrentLayer.AspectRatioLocked := true;
TIETextLayer( ImageEnView1.CurrentLayer ).BorderShape := iesHeart;
TIETextLayer( ImageEnView1.CurrentLayer ).Alignment := iejCenter;
TIETextLayer( ImageEnView1.CurrentLayer ).Layout := ielCenter;
TIETextLayer( ImageEnView1.CurrentLayer ).WordWrap := False;
TIETextLayer( ImageEnView1.CurrentLayer ).Text := 'I Heart Delphi';
TIETextLayer( ImageEnView1.CurrentLayer ).Font.Size := 42;
TIETextLayer( ImageEnView1.CurrentLayer ).TextOverflow := ieoShrink;
TIETextLayer( ImageEnView1.CurrentLayer ).HorzMargin := 0.30;
ImageEnView1.CurrentLayer.BorderColor := clBlack;
ImageEnView1.CurrentLayer.FillColor := clRed;
ImageEnView1.LayersTextRotateMode := iermBoth;


See Also


- BorderWidth
- BorderColor
- BorderRotate