ImageEn, unit ievect

TImageEnVect.ObjFontName

TImageEnVect.ObjFontName


Declaration

property ObjFontName[hobj: integer]: string;


Description

Specifies the font name for an iekTEXT object hobj.

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

// Sets 'Arial' as font type for next object to insert
ImageEnVect1.ObjFontName[IEV_PREVIOUS_INSERTED_OBJECT] := 'Arial';


Transition Information

If you are transitioning your code to TImageEnView Layers, instead of ObjFontName, use: TIETextLayer.Font

// Set 'Arial' as font type for the current text layer
TIETextLayer( ImageEnView1.CurrentLayer ).Font.Name := 'Arial';
ImageEnView1.Update();