Show / Hide Table of Contents

Class Entity

The Entity base class that all entities will be derived from.

Inheritance
System.Object
Entity
Circle
CircularArc
Hatch
Line
LwPolyLine
Point
MText
Text
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 Source

Entity(EntityBuffer)

Declaration
protected Entity(EntityBuffer eb)
Parameters
Type Name Description
EntityBuffer eb

Fields

| Improve this Doc View Source

EntityType

The entity type of this entity

Declaration
public Type EntityType
Field Value
Type Description
System.Type

Properties

| Improve this Doc View Source

Handle

The entity's Handle

Declaration
public string Handle { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

HasReferencedEntities

Returns true if ReferencedEntities count > 0

Declaration
public bool HasReferencedEntities { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

OnLayerChanged(LayerChangedHandlerArgs)

The OnLayerChanged Function that invokes all of the subscribing methods

Declaration
protected virtual void OnLayerChanged(LayerChangedHandlerArgs args)
Parameters
Type Name Description
LayerChangedHandlerArgs args
| Improve this Doc View Source

UpdateReferencedEntities()

The Base Function does nothing

Declaration
public virtual void UpdateReferencedEntities()

Events

| Improve this Doc View Source

LayerChanged

Public event for LayerName changes

Declaration
public event LayerChangedHandler LayerChanged
Event Type
Type Description
LayerChangedHandler
  • Improve this Doc
  • View Source
Back to top Generated by DocFX