Class vdObject
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
This is a Base object that the Vectordraw.Professional.Primaries objects are inherited from.
public abstract class vdObject : vdBaseObject, IDisposable, IVDSerialise, IBaseObject
- Inheritance
-
vdObject
- Implements
- Derived
- Inherited Members
Remarks
vdObject serves as a foundational class for VectorDraw primary objects and provides essential functionality for:
- Handle management and registration in document handle tables
- Handle persistence through serialization/deserialization
- GUID-based handle table support for unique object identification
- Property initialization for derived objects
This is an abstract class and cannot be instantiated directly. Instead, create instances of derived classes such as vdFigure, vdBlock, vdLayer, and other primary VectorDraw objects.
When an object is added to a document collection, it becomes document-registered and receives a unique handle ID that persists throughout its lifetime in the document.
Constructors
- vdObject()
The constructor of the vdObject object where the default initialization is commited.
Fields
- mHandle
Internally used for the object's handle.It is recommended to use the Handle property instead.
Properties
- Handle
Gets a unique object for the Document that represents the handle of the object.
- HandleId
Gets an unsigned 64 bit value of the handle.
Methods
- DeSerialize(DeSerializer, string, object)
This Function is called foreach field name of the vdObject object when opening in vdml format.
- Dispose()
Releases all resources used by this object.
- InitializeProperties()
Resets the properties of the object to the Default values.
- ModifyHandle(vdHandle, vdDocument)
Register the object handle in the document handle table.
- Serialize(Serializer)
This Function is called when saving the object to vdml format.