Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

a8a9fe6a 1c2b 4d18 7413 f8d536ea85a7

haplokuon edited this page May 6, 2023 · 1 revision

Remove(EntityObject) Method

netDxf 3.0.0 Library

Removes an entity from the document.

Definition

Namespace: netDxf.Collections
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public bool Remove(
	EntityObject entity
)

VB

Public Function Remove ( 
	entity As EntityObject
) As Boolean

C++

public:
bool Remove(
	EntityObject^ entity
)

F#

member Remove : 
        entity : EntityObject -> bool 

Parameters

  EntityObject
The entity to remove from the document.

Return Value

Boolean
True if item is successfully removed; otherwise, false.

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

Reference

DrawingEntities Class
Remove Overload
netDxf.Collections Namespace

Clone this wiki locally