ImageEn, unit iexLayers

TIETextLayer.HorzMargin

TIETextLayer.HorzMargin


Declaration

property HorzMargin: Double;


Description

Increase the size of the border shape above and below the text. HorzMargin is a percentage value, so 0.10, sets 10% of the left and right as spacing.

Note: HorzMargin has no effect if the border shape is not visible.

Default: 0


Example

// Set shape to circular with 10% spacing on all sides (i.e. making ellipse taller and wider)
TIETextLayer( ImageEnView1.CurrentLayer ).BorderShape := iesEllipse;
TIETextLayer( ImageEnView1.CurrentLayer ).HorzMargin := 0.10;
TIETextLayer( ImageEnView1.CurrentLayer ).VertMargin := 0.10;
ImageEnView1.Update();


See Also

- VertMargin
- AutoSize