Class vdPrimariesList
- Namespace
- VectorDraw.Professional.vdCollections
- Assembly
- VectorDraw.Professional.dll
Represents a collection of vdPrimary objects used by the Professional logic layer.
public sealed class vdPrimariesList : BaseObject, IDisposable, IBaseObject, IEnumerable
- Inheritance
-
vdPrimariesList
- Implements
- Inherited Members
Remarks
vdPrimariesList exposes methods to add, remove, insert, reorder and query vdPrimary instances.
The collection does not allow duplicate vdPrimary objects (by Id) and will throw or signal a duplicate attempt through the existing exceptions handling used in this project. Use GetNotDeletedItems() to obtain an array of non-deleted items.
Constructors
- vdPrimariesList()
Initializes the vdPrimariesList collection object.
Properties
- Count
Get the item's count of the collection.
- this[int]
Get a vdPrimary object from the collection at a specified index.
- ItemType
Returns the Type of Items in the collection
Methods
- AddItem(object)
Adds an object to the collection.
- AddItem(vdPrimary)
Adds a vdPrimary object to the collection.
- ChangeOrder(vdPrimary, bool)
Changes the position of a vdPrimary object to the front or the end of the collection.
- ClearIndexDictionary()
Clears the Index of the Dictionary. Internally used to speed up Swap method.
- FindItem(object)
Checks if an object exists in the collection.
- FindItem(vdPrimary)
Checks if an object exists in the collection.
- GetEnumerator()
Implements the "foreach" expression for the collection.
- GetNotDeletedItems()
Get all non deleted objects of the collection.
- GetObjectRealPosition(object)
Find the index where a specified object is located in the list.
- InsertAt(int, object)
Insert an object at a specified index.
- InsertAt(int, vdPrimary)
Insert a vdPrimary object to a specified index of the collection.
- MakeIndexDictionary()
Creates an Index of the Dictionary. Internally used to speed up Swap method.
- RemoveAll()
Removes all objects from the collection.
- RemoveAt(int)
Removes an object from the specified index of the collection.
- RemoveItem(object)
Removes an object from the collection.
- RemoveItem(vdPrimary)
Removes a specific vdPrimary object from the collection.
- ToString()
Gets a System.String that represents the count of the vdPrimariesList collection Object.
- swap(vdPrimary, vdPrimary)
Swaps the position between two different vdPrimary objects existing in the collection.