ImageEn, unit ievect

TImageEnVect.ObjUserData

TImageEnVect.ObjUserData


Declaration

property ObjUserData[hobj: integer]: pointer;


Description

Applications can store custom data using ObjUserData. ObjUserData contains a pointer to a user buffer with a length specified by ObjUserDataLength.
hobj is the ID of the object. You should not use IEV_NEXT_INSERTED_OBJECT (-1) or IEV_PREVIOUS_INSERTED_OBJECT (-2) for this property.

Note: The loading, saving and clipboard methods save this field by allocating a buffer when needed. When the object is destroyed the memory used by ObjUserData will be freed (if it has not been reset to nil).


Demo

Demo  Demos\XLegacy_Demos\VectorEditor\UserDataVect\UserDataVect.dpr


Transition Information

If you are transitioning your code to TImageEnView Layers, instead of ObjUserData, use: TIELayer.UserData

ImageEnView1.CurrentLayer.UserData := p;