Class Entity
The Entity base class that all entities will be derived from.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dxflib.Entities
Assembly: Dxflib.dll
Syntax
public abstract class Entity
Constructors
| Improve this Doc View SourceEntity(EntityBuffer)
Declaration
protected Entity(EntityBuffer eb)
Parameters
Type | Name | Description |
---|---|---|
EntityBuffer | eb |
Fields
| Improve this Doc View SourceEntityType
The entity type of this entity
Declaration
public Type EntityType
Field Value
Type | Description |
---|---|
System.Type |
Properties
| Improve this Doc View SourceHandle
The entity's Handle
Declaration
public string Handle { get; }
Property Value
Type | Description |
---|---|
System.String |
HasReferencedEntities
Returns true if ReferencedEntities count > 0
Declaration
public bool HasReferencedEntities { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LayerName
The entity's Layer name
Declaration
public string LayerName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Note that a LayerChanged event will be fired off if this property is changed.
ReferencedEntities
A list of Entity Pointers to referenced entities
Declaration
public List<EntityPointer<Entity>> ReferencedEntities { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<EntityPointer<Entity>> |
Remarks
A referenced entity is an entity that this entity is referring to for example the Hatch Entity can reference its boundary object.
Methods
| Improve this Doc View SourceOnLayerChanged(LayerChangedHandlerArgs)
The OnLayerChanged Function that invokes all of the subscribing methods
Declaration
protected virtual void OnLayerChanged(LayerChangedHandlerArgs args)
Parameters
Type | Name | Description |
---|---|---|
LayerChangedHandlerArgs | args |
UpdateReferencedEntities()
The Base Function does nothing
Declaration
public virtual void UpdateReferencedEntities()
Events
| Improve this Doc View SourceLayerChanged
Public event for LayerName changes
Declaration
public event LayerChangedHandler LayerChanged
Event Type
Type | Description |
---|---|
LayerChangedHandler |