ImageEn, unit IEVect

TImageEnVect.ObjMemoMarginTop

TImageEnVect.ObjMemoMarginTop


Declaration

property ObjMemoMarginTop[hobj: integer]: double;


Description

Specifies the top margin in percentage of vertical height. This applies only to memo objects.
hobj is the ID of the object. You can also specify IEV_NEXT_INSERTED_OBJECT (-1) which refers to the next object to be inserted or IEV_PREVIOUS_INSERTED_OBJECT (-2) for the last object inserted.


Example

ImageEnVect1.ObjMemoMarginLeft[h] := 10;  // 10% left
ImageEnVect1.ObjMemoMarginTop[h] := 10;  // 10% top
ImageEnVect1.ObjMemoMarginRight[h] := 10;  // 10% right
ImageEnVect1.ObjMemoMarginBottom[h] := 10;  // 10% bottom


Transition Information

If you are transitioning your code to TImageEnView Layers, instead of ObjMemoMarginTop, use: TIETextLayer.VertMargin
Note: Same property is used for both top and bottom

TIETextLayer( ImageEnView1.CurrentLayer ).VertMargin := 0;
ImageEnView1.Update();