Class which holds a collection of ClassItem.
Cognex.Vision ShareableBase
Cognex.Vision ChangedEventShareableBase
Cognex.Vision.ELCore.Implementation CollectionOfClassItemPtr
Cognex.Vision.ELCore ClassItemCollection
Namespace: Cognex.Vision.ELCore
Assembly: Cognex.Vision.ELCore.Net (in Cognex.Vision.ELCore.Net.dll) Version: 9.21.1.1
The ClassItemCollection type exposes the following members.
| Name | Description | |
|---|---|---|
| ClassItemCollection | Constructs a new instance of the collection class. | |
| ClassItemCollection(Int64) | Constructs a new instance of the collection class with an initial capacity specified by the argument. |
| Name | Description | |
|---|---|---|
| Add | Add an item to the end of this collection. | |
| AddRange | Adds the elements of the specified collection to the end of the collection. | |
| Clear | Remove all items from this collection. | |
| Contains | Determine whether an item is in this collection. | |
| CopyTo |
Copies all the elements of the collection to the specified one-dimensional array
starting at the specified destination array index. The index is specified as a 32-bit integer.
(Overrides CollectionOfClassItemPtr CopyTo( ClassItem , Int32).) | |
| Equals | Compares the equality of this object with another. (Overrides ChangedEventShareableBase Equals(Object).) | |
| GetClassItem | Returns the class item associated with the provided identifier. | |
| GetEnumerator |
Returns an IEnumerator for the collection.
(Overrides CollectionOfClassItemPtr GetEnumerator .) | |
| GetHashCode | Returns the hash code of this object. (Overrides ChangedEventShareableBase GetHashCode .) | |
| GetItem | Get the item at the specified index. (Overrides CollectionOfClassItemPtr GetItem(Int32).) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| GetTypeMeta | Get the TypeMeta that describes the type of this object. | |
| IndexOf | Find the first item in this collection that matches the supplied item, and return its index. | |
| Insert | Insert the given item at the specified index. | |
| Move | Move the selected item to a new index in this collection. | |
| Remove | Remove the specified item from this collection. | |
| RemoveAt | Remove the item at the specified index. | |
| Reserve | Set the collection capacity be at least the specified number of items. If minimumCapacity is greater than the current collection capacity, this method will cause the collection to reallocate its storage, increasing its capacity to at least minimumCapacity. Attempts to set capacity to a value less than or equal to the current value are ignored. | |
| ResumeAndRaiseChangedEvent | Re-enables raising of the ChangedEvent after SuspendChangedEvent has been called, and raises the ChangedEvent if the ChangedEventSuspended count is reduced to zero and any changes were made while events were suspended. Must be called once for each call to SuspendChangedEvent. | |
| setItem | Replace the element at the specified index. | |
| SuspendChangedEvent | Temporarily suspends the raising of the ChangedEvent. May be called more than once, and a corresponding call to ResumeAndRaiseChangedEvent must be made for each call to SuspendChangedEvent. | |
| ToString | Returns a human readable string that represents the object. |
| Name | Description | |
|---|---|---|
| Equality | Compares the equality of two ClassItemCollection objects. | |
| Inequality | Compares the inequality of two ClassItemCollection objects. |
| Name | Description | |
|---|---|---|
| Capacity | Get the capacity of this collection. This is the maximum number of items that may be stored in this collection without reallocation. Capacity is increased automatically as needed to hold added items. | |
| ChangedEventSuspended | Indicates if raising the ChangedEvent has been suspended. | |
| Count | Get the number of elements contained in this collection. | |
| Handle | (Overrides CollectionOfClassItemPtr Handle.) | |
| IsReadOnly | Get whether or not this collection is read-only. | |
| Item | (Overrides CollectionOfClassItemPtr Item Int32 .) |
| Name | Description | |
|---|---|---|
| Changed | The actual event. | |
| Cleared | Raised after the collection is cleared. | |
| Clearing | Raised before the collection is cleared. | |
| InsertedItem | Raised after an item is inserted. | |
| InsertingItem | Raised before an item is inserted. | |
| MovedItem | Raised after an item is moved to a new index. | |
| MovingItem | Raised before an item is moved to a new index. | |
| RemovedItem | Raised after an item is removed. | |
| RemovingItem | Raised before an item is removed. | |
| ReplacedItem | Raised after an item is replaced. | |
| ReplacingItem | Raised before an item is replaced. |
The ClassItems in the ClassItemCollection must each have a unique identifier. Duplicate ClassItems are not allowed. ClassItems are allowed to have the same Class name.