Click or drag to resize

EntityCollection Class

imbVeles Framework: imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Represent a collection of entities that fire events when it is modified.
Inheritance Hierarchy
SystemObject
  netDxf.CollectionsEntityCollection

Namespace:  netDxf.Collections
Assembly:  netDXF.Standard (in netDXF.Standard.dll) Version: 2.1.1
Syntax
C#
public class EntityCollection : IList<EntityObject>, 
	ICollection<EntityObject>, IEnumerable<EntityObject>, IEnumerable
Request Example View Source

The EntityCollection type exposes the following members.

Constructors
  NameDescription
Public methodEntityCollection
Initializes a new instance of EntityCollection.
Public methodEntityCollection(Int32)
Initializes a new instance of EntityCollection and has the specified initial capacity.
Top
Properties
  NameDescription
Public propertyCount
Gets the number of entities contained in the collection.
Public propertyIsReadOnly
Gets a value indicating whether the collection is read-only.
Public propertyItem
Gets or sets the entity at the specified index.
Top
Methods
  NameDescription
Public methodAdd
Adds an entity to the collection.
Public methodAddRange
Adds an entity list to the end of the collection.
Public methodClear
Removes all entities from the collection.
Public methodContains
Determines whether an entity is in the collection.
Public methodCopyTo
Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Searches for the specified entity and returns the zero-based index of the first occurrence within the entire collection.
Public methodInsert
Inserts an entity into the collection at the specified index.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnAddItemEvent
Protected methodOnBeforeAddItemEvent
Protected methodOnBeforeRemoveItemEvent
Protected methodOnRemoveItemEvent
Public methodRemove(EntityObject)
Removes the first occurrence of a specific entity from the collection
Public methodRemove(IEnumerableEntityObject)
Removes the first occurrence of a specific object from the collection
Public methodRemoveAt
Removes the entity at the specified index of the collection.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
See Also