TImageEnVect.GetObjFromName
Declaration
function GetObjFromName(const oName: AnsiString): integer;
Description
GetObjFromName finds the first vectorial object with the specified name. Objects names are stored in
ObjName.
Strings are case sensitive.
The returned value is the handle of the object.
// set pen color to clRed for the first object that has ObjName[]='Jack'
var
hobj: integer;
begin
...
hobj := ImageEnVect1.GetObjFromName('Jack');
ImageEnVect1.ObjPenColor[hobj] := clRed;
..
end;
Transition Information
If you are transitioning your code to
TImageEnView Layers, instead of GetObjFromName, use:
LayersNameToIndex
idx := ImageEnView1.LayersNameToIndex('Layer Name');