EntityCollection Class |
Namespace: netDxf.Collections
public class EntityCollection : IList<EntityObject>, ICollection<EntityObject>, IEnumerable<EntityObject>, IEnumerable
The EntityCollection type exposes the following members.
| Name | Description | |
|---|---|---|
| EntityCollection |
Initializes a new instance of EntityCollection.
| |
| EntityCollection(Int32) |
Initializes a new instance of EntityCollection and has the specified initial capacity.
|
| Name | Description | |
|---|---|---|
| Count |
Gets the number of entities contained in the collection.
| |
| IsReadOnly |
Gets a value indicating whether the collection is read-only.
| |
| Item |
Gets or sets the entity at the specified index.
|
| Name | Description | |
|---|---|---|
| Add |
Adds an entity to the collection.
| |
| AddRange |
Adds an entity list to the end of the collection.
| |
| Clear |
Removes all entities from the collection.
| |
| Contains |
Determines whether an entity is in the collection.
| |
| CopyTo |
Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetEnumerator |
Returns an enumerator that iterates through the collection.
| |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IndexOf |
Searches for the specified entity and returns the zero-based index of the first occurrence within the entire collection.
| |
| Insert |
Inserts an entity into the collection at the specified index.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OnAddItemEvent | ||
| OnBeforeAddItemEvent | ||
| OnBeforeRemoveItemEvent | ||
| OnRemoveItemEvent | ||
| Remove(EntityObject) |
Removes the first occurrence of a specific entity from the collection
| |
| Remove(IEnumerableEntityObject) |
Removes the first occurrence of a specific object from the collection
| |
| RemoveAt |
Removes the entity at the specified index of the collection.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| AddItem | ||
| BeforeAddItem | ||
| BeforeRemoveItem | ||
| RemoveItem |