Show / Hide Table of Contents

Class EntityObject

Represents a generic entity.

Inheritance
System.Object
DxfObject
EntityObject
Arc
Circle
Dimension
Ellipse
Face3d
Hatch
Image
Insert
Leader
Line
LwPolyline
Mesh
MLine
MText
Point
PolyfaceMesh
Polyline
Ray
Shape
Solid
Spline
Text
Tolerance
Trace
Underlay
Viewport
Wipeout
XLine
Implements
IHasXData
System.ICloneable
Inherited Members
DxfObject.CodeName
DxfObject.Handle
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)
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public abstract class EntityObject : DxfObject, IHasXData, ICloneable

Constructors

| Improve this Doc View Source

EntityObject(EntityType, String)

Declaration
protected EntityObject(EntityType type, string dxfCode)
Parameters
Type Name Description
EntityType type
System.String dxfCode

Properties

| Improve this Doc View Source

Color

Gets or sets the entity AciColor.

Declaration
public AciColor Color { get; set; }
Property Value
Type Description
AciColor
| Improve this Doc View Source

IsVisible

Gets or set the entity visibility.

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

Layer

Gets or sets the entity Layer.

Declaration
public Layer Layer { get; set; }
Property Value
Type Description
Layer
| Improve this Doc View Source

Linetype

Gets or sets the entity Linetype.

Declaration
public Linetype Linetype { get; set; }
Property Value
Type Description
Linetype
| Improve this Doc View Source

LinetypeScale

Gets or sets the entity line type scale.

Declaration
public double LinetypeScale { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Lineweight

Gets or sets the entity Lineweight, one unit is always 1/100 mm (default = ByLayer).

Declaration
public Lineweight Lineweight { get; set; }
Property Value
Type Description
Lineweight
| Improve this Doc View Source

Normal

Gets or sets the entity Vector3.

Declaration
public Vector3 Normal { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

Owner

Gets the owner of the actual DXF object.

Declaration
public Block Owner { get; }
Property Value
Type Description
Block
| Improve this Doc View Source

Reactors

Gets the list of DXF objects that has been attached to this entity.

Declaration
public IReadOnlyList<DxfObject> Reactors { get; }
Property Value
Type Description
System.Collections.Generic.IReadOnlyList<DxfObject>
| Improve this Doc View Source

Transparency

Gets or sets layer Transparency (default: ByLayer).

Declaration
public Transparency Transparency { get; set; }
Property Value
Type Description
Transparency
| Improve this Doc View Source

Type

Gets the entity EntityType.

Declaration
public EntityType Type { get; }
Property Value
Type Description
EntityType
| Improve this Doc View Source

XData

Gets the entity XDataDictionary.

Declaration
public XDataDictionary XData { get; }
Property Value
Type Description
XDataDictionary

Methods

| Improve this Doc View Source

Clone()

Creates a new entity that is a copy of the current instance.

Declaration
public abstract object Clone()
Returns
Type Description
System.Object

A new entity that is a copy of this instance.

| Improve this Doc View Source

OnLayerChangedEvent(Layer, Layer)

Declaration
protected virtual Layer OnLayerChangedEvent(Layer oldLayer, Layer newLayer)
Parameters
Type Name Description
Layer oldLayer
Layer newLayer
Returns
Type Description
Layer
| Improve this Doc View Source

OnLinetypeChangedEvent(Linetype, Linetype)

Declaration
protected virtual Linetype OnLinetypeChangedEvent(Linetype oldLinetype, Linetype newLinetype)
Parameters
Type Name Description
Linetype oldLinetype
Linetype newLinetype
Returns
Type Description
Linetype
| Improve this Doc View Source

OnXDataAddAppRegEvent(ApplicationRegistry)

Declaration
protected virtual void OnXDataAddAppRegEvent(ApplicationRegistry item)
Parameters
Type Name Description
ApplicationRegistry item
| Improve this Doc View Source

OnXDataRemoveAppRegEvent(ApplicationRegistry)

Declaration
protected virtual void OnXDataRemoveAppRegEvent(ApplicationRegistry item)
Parameters
Type Name Description
ApplicationRegistry item
| Improve this Doc View Source

ToString()

Converts the value of this instance to its equivalent string representation.

Declaration
public override string ToString()
Returns
Type Description
System.String

The string representation.

Overrides
DxfObject.ToString()
| Improve this Doc View Source

TransformBy(Matrix3, Vector3)

Moves, scales, and/or rotates the current entity given a 3x3 transformation matrix and a translation vector.

Declaration
public abstract void TransformBy(Matrix3 transformation, Vector3 translation)
Parameters
Type Name Description
Matrix3 transformation

Transformation matrix.

Vector3 translation

Translation vector.

Remarks

Matrix3 adopts the convention of using column vectors to represent a transformation matrix.

| Improve this Doc View Source

TransformBy(Matrix4)

Moves, scales, and/or rotates the current entity given a 4x4 transformation matrix.

Declaration
public void TransformBy(Matrix4 transformation)
Parameters
Type Name Description
Matrix4 transformation

Transformation matrix.

Remarks

Matrix4 adopts the convention of using column vectors to represent a transformation matrix.

Events

| Improve this Doc View Source

LayerChanged

Declaration
public event EntityObject.LayerChangedEventHandler LayerChanged
Event Type
Type Description
EntityObject.LayerChangedEventHandler
| Improve this Doc View Source

LinetypeChanged

Declaration
public event EntityObject.LinetypeChangedEventHandler LinetypeChanged
Event Type
Type Description
EntityObject.LinetypeChangedEventHandler
| Improve this Doc View Source

XDataAddAppReg

Declaration
public event XDataAddAppRegEventHandler XDataAddAppReg
Event Type
Type Description
XDataAddAppRegEventHandler
| Improve this Doc View Source

XDataRemoveAppReg

Declaration
public event XDataRemoveAppRegEventHandler XDataRemoveAppReg
Event Type
Type Description
XDataRemoveAppRegEventHandler

Implements

IHasXData
System.ICloneable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX