class
ValueArrayCollection
ValueArrayCollection and its specializations handles a collection of ValueArrays. There are methods for adding, removing and iterating through the objects.
Properties
Property | Description |
---|---|
Name | The name of the ValueArrayCollection object. (Inherited from Object) |
Methods
Method | Description |
---|---|
AddObject | Adds an object to the collection. The handle refers to the object until the object is removed from the collection again. (Inherited from ObjectCollection) |
AddObjectSorted | Adds an object to the collection, as AddObject, but sorts the object into the collection based on its name. (Inherited from ObjectCollection) |
AddObserver | Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object) |
AddValueArray | Adds an array to the collection. The handle refers to the array until the object is removed from the collection again. |
FindObject | Finds a named object in the collection. The first object with this name is returned. The search is case-sensitive. (Inherited from ObjectCollection) |
FindRegexValueArray | Finds an array in the collection, using the primary name and/or the alternative name of the array. Either of the names can also be looked up using regular expressions, or exactly matched to the name. |
FindValueArray | Finds a named array in the collection. The first object with this name is returned. The search is case-sensitive. |
GetClass | Get the name of the ValueArrayCollection class. (Inherited from Object) |
GetFirstItem | Returns the start of the collection. The handle returned refers to the first object in the collection. If the handle is null, then the collection is empty. (Inherited from ObjectCollection) |
GetItem | Returns the handle of the i:th item. (Inherited from ObjectCollection) |
GetItemAsObject | Returns the object of the i:th item. (Inherited from ObjectCollection) |
GetItemCount | The number of items in the collection. (Inherited from ObjectCollection) |
GetItemsObject | The object the handle is referring to. (Inherited from ObjectCollection) |
GetNextItem | Returns the handle to the next item in the collection. Use GetFirstItem and this method to step through the collection. If the return is null, the end of the collection has been reached. (Inherited from ObjectCollection) |
GetValueArray | Retrieves a value array using a handle. |
IsA | Returns true if ValueArrayCollection is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
IsItemInCollection | Returns true if the item is in the collection. (Inherited from ObjectCollection) |
IsNull | Returns true if the ValueArrayCollection object is invalid. (Inherited from Object) |
IsObjectInCollection | Returns true if the object is in the collection. (Inherited from ObjectCollection) |
IsSameObjectAs | Returns true if the ValueArrayCollection object is valid. (Inherited from Object) |
IsValueArrayInCollection | Returns true if the array is in the collection. |
NonNull | Returns true if the ValueArrayCollection object is valid. (Inherited from Object) |
PrintInfo | Prints the content/info of the ValueArrayCollection object to the log. (Inherited from Object) |
RemoveAllItems | Removes all items from the collection. (Inherited from ObjectCollection) |
RemoveItem | Removes an item from the collection. The handle returned is the first item after this item that is in the collection. If the return is null, the item was the last item in the collection. Warning! The handle is invalid after the removal of the object. (Inherited from ObjectCollection) |
RemoveObject | Removes an object from the collection. Only the first occurrence of the object is removed from the collection. (Inherited from ObjectCollection) |
RemoveObserver | Removes a previously added observer object. (Inherited from Object) |
RemoveValueArray | Removes an array from the collection. Only the first occurrence of the object is removed from the collection. |
Static methods
Method | Description |
---|---|
IsClassA | Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
SafeCast | SafeCast makes sure the input object is of a class that can be cast into spValueArrayCollection, and if this is the case, returns the object cast into spValueArrayCollection. (Inherited from Object) |
Properties details
Name
The name of the ValueArrayCollection object. (Inherited from Object)
Methods details
AddObject
Adds an object to the collection. The handle refers to the object until the object is removed from the collection again.
AddObjectSorted
Adds an object to the collection, as AddObject, but sorts the object into the collection based on its name.
AddObserver
Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
AddValueArray
Adds an array to the collection. The handle refers to the array until the object is removed from the collection again.
FindObject
Finds a named object in the collection. The first object with this name is returned. The search is case-sensitive.
FindRegexValueArray
Finds an array in the collection, using the primary name and/or the alternative name of the array. Either of the names can also be looked up using regular expressions, or exactly matched to the name.
FindValueArray
Finds a named array in the collection. The first object with this name is returned. The search is case-sensitive.
GetClass
Get the name of the ValueArrayCollection class. (Inherited from Object)
GetFirstItem
Returns the start of the collection. The handle returned refers to the first object in the collection. If the handle is null, then the collection is empty.
GetItem
Returns the handle of the i:th item.
GetItemAsObject
Returns the object of the i:th item.
GetItemCount
The number of items in the collection.
GetItemsObject
The object the handle is referring to.
GetNextItem
Returns the handle to the next item in the collection. Use GetFirstItem and this method to step through the collection. If the return is null, the end of the collection has been reached.
GetValueArray
Retrieves a value array using a handle.
IsA
Returns true if ValueArrayCollection is a or is a descendant of the class named as the type parameter. (Inherited from Object)
IsItemInCollection
Returns true if the item is in the collection.
IsNull
Returns true if the ValueArrayCollection object is invalid. (Inherited from Object)
IsObjectInCollection
Returns true if the object is in the collection.
IsSameObjectAs
Returns true if the ValueArrayCollection object is valid. (Inherited from Object)
IsValueArrayInCollection
Returns true if the array is in the collection.
NonNull
Returns true if the ValueArrayCollection object is valid. (Inherited from Object)
PrintInfo
Prints the content/info of the ValueArrayCollection object to the log. (Inherited from Object)
RemoveAllItems
Removes all items from the collection.
RemoveItem
Removes an item from the collection. The handle returned is the first item after this item that is in the collection. If the return is null, the item was the last item in the collection. Warning! The handle is invalid after the removal of the object.
RemoveObject
Removes an object from the collection. Only the first occurrence of the object is removed from the collection.
RemoveObserver
Removes a previously added observer object. (Inherited from Object)
RemoveValueArray
Removes an array from the collection. Only the first occurrence of the object is removed from the collection.
Static methods details
IsClassA
Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
SafeCast
SafeCast makes sure the input object is of a class that can be cast into spValueArrayCollection, and if this is the case, returns the object cast into spValueArrayCollection. (Inherited from Object)