Class vdBaseObject
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
This is the Base object that the most Vectordraw.Professional objects are inherited from.
public abstract class vdBaseObject : BaseObject, IDisposable, IVDSerialise, IBaseObject
- Inheritance
-
vdBaseObject
- Implements
- Derived
- Inherited Members
Remarks
vdBaseObject serves as the foundational class for most VectorDraw objects and provides essential functionality for:
- Document registration and management
- Owner hierarchy tracking
- Event handling for object modifications
- Undo/Redo history support
- Serialization/Deserialization
- Unit conversion (linear and angular)
This is an abstract class and cannot be instantiated directly. Instead, create instances of derived classes. When an object is added to a document collection, it becomes document-registered and can participate in undo/redo operations.
Constructors
- vdBaseObject()
The constructor of the vdBase object where the default initialization is commited.
Properties
- DocProperties
This Interface is used to pass Document's properties to the Actions dll.
- Document
Gets the vdDocument that the object belongs.
- IsDocumentRegister
Represents if the object is Registered in a Document.
- Owner
Gets the object that belongs to.
- SupportUndoWrite
Returns true if object can write to Undo.If it is return false object properties are save to UndoHistory.By default return true.
- UndoHistory
Gets the Undo History object.
- _TypeName
Gets a unique string that represents the type of the object.
- aunits
Get/Set the Angular Units of the object.
- lunits
Get/Set the Linear Units of the object.
Methods
- AddHistory(string, object)
Adds To the Undo History a new Record.
- AddHistoryEx(string, object)
Adds To the Undo History a new Record.
- DeSerialize(DeSerializer, string, object)
This Function is called foreach field name of the vdBaseObject object when opening in vdml format.
- Dispose()
Releases all resources used by this object.
- GetTableDependecies(vdTableDependeciesArgs)
Fills the passed vdTableDependeciesArgs args with all the table references of this object (vdLayer, vdBlock, vdDimstyle, vdLineType, vdTextstyle, vdImageDef, vdHatchPattern etc).
- InternalSetOwner(vdBaseObject)
Internally used only.
Set the object owner
- OnDocumentSelected(vdDocument)
This method is called when the object is inserted in a Document for the first time.
- OnOwnerChanged()
This method is called when the object's owner is changed.
- RaiseOnAfterModify(string)
Raises the OnAfterModifyObject Event of vdDocument object and OnAfterModifyObjectEx event of this object.
- RaiseOnBeforeModify(string, object)
Raises the OnBeforeModifyObject Event of vdDocument object.
- Register()
Register the object handle in to its Document handle table.
- Serialize(Serializer)
This Function is called when saving the object to vdml format.
- SetUnRegisterDocument(vdDocument)
Select the vdDocument that the object belongs to.The object is marked as DocumentUnregistered.
- ToString()
Returns a System.String that represents the type of the vdBaseObject.
Events
- OnAfterModifyObjectEx
Fires after a change to a property of the object.
- OnBeforeModifyObjectEx
Fires before a change to a property of the object.