Click or drag to resize

DxfDocumentRemoveEntity Method (EntityObject)

imbVeles Framework: imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Removes an entity from the document.

Namespace:  netDxf
Assembly:  netDXF.Standard (in netDXF.Standard.dll) Version: 2.1.1
Syntax
C#
public bool RemoveEntity(
	EntityObject entity
)
Request Example View Source

Parameters

entity
Type: netDxf.EntitiesEntityObject
The entity to remove from the document.

Return Value

Type: Boolean
True if item is successfully removed; otherwise, false. This method also returns false if item was not found.
Remarks
This function will not remove other tables objects that might be not in use as result from the elimination of the entity.
This includes empty layers, blocks not referenced anymore, line types, text styles, dimension styles, multiline styles, groups, and application registries.
Entities that are part of a block definition will not be removed.
See Also