Class vdPrimary
- Namespace
- VectorDraw.Professional.vdObjects
- Assembly
- VectorDraw.Professional.dll
Abstract base class that serves as the foundation for all Table objects (such as vdLayer, vdBlock, etc.) and vdFigure objects.
public abstract class vdPrimary : vdObject, IDisposable, IVDSerialise, IBaseObject
- Inheritance
-
vdPrimary
- Implements
- Derived
- Inherited Members
Remarks
The vdPrimary class cannot be directly instantiated but provides core functionality inherited by:
- Table objects: vdLayer, vdBlock, vdDimstyle, vdLineType, vdTextstyle, vdImageDef, vdHatchPattern
- Figure objects: All geometric and non-geometric drawing entities
Key features include:
- Support for object deletion with dependency checking via Deleted property
- User-defined labels and extended properties through Label and XProperties
- Cloning capabilities with property matching via Clone(vdDocument) and MatchProperties(vdPrimary, vdDocument)
- Document integration with undo/redo history support
- Table dependency tracking for safe object deletion
- Serialization support for vdml format storage
Constructors
- vdPrimary()
The constructor of the vdPrimary object where the default initialization is commited.
Properties
- Deleted
Get/Set a property that marks the object as Deleted or not.
- Label
Get/Set a label string for the object
- PrimaryFlag
Returns a generic flag that provides temporary information about the object.
- XProperties
Gets the Collection of vdXproperties of the object.
- XPropertiesRef
Returns a reference to XProperties of the object.
Methods
- Clone(vdDocument)
Creates a clone of this object.
- DeSerialize(DeSerializer, string, object)
This Function is called foreach field name of the vdPrimary 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).
- InitializeProperties()
Resets the properties of the vdPrimary object to the Default values.
- InternalDeleteNoCheck()
Mark this object as Deleted with out checking if this object is depend from other objects in Document
- InternalSetOwner(vdBaseObject)
Internally used only.
Set the object owner
- IsTableObjectDependOn(vdPrimary)
Check if the table object is depend on this figure
- MatchProperties(vdPrimary, vdDocument)
Matches all the common properties from an object and sets them to this object.
- OnCloneFinish(vdPrimary, byte)
Called after the Clone method has finished cloning the object and all the properties have been matched.
- RaiseOnEraseObject()
Raises the OnEraseObject Event of vdDocument object.
- Serialize(Serializer)
This Function is called when saving the vdPrimary object to vdml format.
- Update()
Updates the object after change of properties.
- setDocumentDefaults()
Sets the default values at the properties of the object that depend from the Document Active Properties.