Class ItemIndexCollection
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a collection of item indexes.
public class ItemIndexCollection : Collection<ItemIndex>, IList<ItemIndex>, ICollection<ItemIndex>, IList, ICollection, IReadOnlyList<ItemIndex>, IReadOnlyCollection<ItemIndex>, IEnumerable<ItemIndex>, IEnumerable
- Inheritance
-
ItemIndexCollection
- Implements
- Inherited Members
Constructors
ItemIndexCollection()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.ItemIndexCollection class.
public ItemIndexCollection()
Methods
Add(ItemIndexType, string)
Adds a new item index to the collection with the specified index type and value.
public ItemIndex Add(ItemIndexType indexType, string value)
Parameters
indexTypeItemIndexTypeThe index type.
valuestringThe value.
Returns
- ItemIndex
The item index that was added to the collection.
Add(ItemIndexType, string, ItemIndexComponentType, string, Guid)
Adds a new item index to the collection with the specified index type and value.
public ItemIndex Add(ItemIndexType indexType, string value, ItemIndexComponentType componentType, string componentDisplayName, Guid componentIdentifier)
Parameters
indexTypeItemIndexTypeThe index type.
valuestringThe value.
componentTypeItemIndexComponentTypeThe optional component type.
componentDisplayNamestringThe optional component display name.
componentIdentifierGuidThe optional component identifier.
Returns
- ItemIndex
The item index that was added to the collection.
Exists(ItemIndexType)
Returns a System.Boolean value that indicates whether any item indexes of the specified index type exist within the collection.
public bool Exists(ItemIndexType indexType)
Parameters
indexTypeItemIndexTypeThe index type of the item indexes to return.
Returns
- bool
A System.Boolean value that indicates whether any item indexes of the specified index type exist within the collection.
Exists(ItemIndexType, Guid)
Returns a System.Boolean value that indicates whether any item indexes of the specified index type exist within the collection.
public bool Exists(ItemIndexType indexType, Guid componentIdentifier)
Parameters
indexTypeItemIndexTypeThe index type of the item indexes to return.
componentIdentifierGuidThe optional component identifier.
Returns
- bool
A System.Boolean value that indicates whether any item indexes of the specified index type exist within the collection.
Exists(ItemIndexType, string)
Returns a System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.ItemIndex that matches the specified criteria exists within the collection.
public bool Exists(ItemIndexType indexType, string value)
Parameters
indexTypeItemIndexTypeThe index type of the item index to return.
valuestringThe index value.
Returns
- bool
A System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.ItemIndex that matches the specified criteria exists within the collection.
Exists(ItemIndexType, string, ItemIndexComponentType, string, Guid)
Returns a System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.ItemIndex that matches the specified criteria exists within the collection.
public bool Exists(ItemIndexType indexType, string value, ItemIndexComponentType componentType, string componentDisplayName, Guid componentIdentifier)
Parameters
indexTypeItemIndexTypeThe index type of the item index to return.
valuestringThe index value.
componentTypeItemIndexComponentTypeThe component type.
componentDisplayNamestringThe optional component display name.
componentIdentifierGuidThe optional component identifier.
Returns
- bool
A System.Boolean value that indicates whether a CENTREL.XIA.Configuration.Types.ItemIndex that matches the specified criteria exists within the collection.
Find(ItemIndexType, string)
Returns the CENTREL.XIA.Configuration.Types.ItemIndex that matches the specified criteria, or null if no item index matches the criteria.
public ItemIndex Find(ItemIndexType indexType, string value)
Parameters
indexTypeItemIndexTypeThe index type of the item index to return.
valuestringThe index value.
Returns
- ItemIndex
The CENTREL.XIA.Configuration.Types.ItemIndex that matches the specified criteria, or null if no item index matches the criteria.
Find(ItemIndexType, string, ItemIndexComponentType, string, Guid)
Returns the CENTREL.XIA.Configuration.Types.ItemIndex that matches the specified criteria, or null if no item index matches the criteria.
public ItemIndex Find(ItemIndexType indexType, string value, ItemIndexComponentType componentType, string componentDisplayName, Guid componentIdentifier)
Parameters
indexTypeItemIndexTypeThe index type of the item index to return.
valuestringThe index value.
componentTypeItemIndexComponentTypeThe component type.
componentDisplayNamestringThe optional component display name.
componentIdentifierGuidThe optional component identifier.
Returns
- ItemIndex
The CENTREL.XIA.Configuration.Types.ItemIndex that matches the specified criteria, or null if no item index matches the criteria.
FindByIndexType(ItemIndexType)
Returns a CENTREL.XIA.Configuration.Types.ItemIndexCollection containing the item indexes of the specified index type.
public ItemIndexCollection FindByIndexType(ItemIndexType indexType)
Parameters
indexTypeItemIndexTypeThe index type of the item indexes to return.
Returns
- ItemIndexCollection
A CENTREL.XIA.Configuration.Types.ItemIndexCollection containing the item indexes of the specified index type.
FindByIndexType(ItemIndexType, Guid)
Returns a CENTREL.XIA.Configuration.Types.ItemIndexCollection containing the item indexes of the specified index type.
public ItemIndexCollection FindByIndexType(ItemIndexType indexType, Guid componentIdentifier)
Parameters
indexTypeItemIndexTypeThe index type of the item indexes to return.
componentIdentifierGuidThe optional component identifier.
Returns
- ItemIndexCollection
A CENTREL.XIA.Configuration.Types.ItemIndexCollection containing the item indexes of the specified index type.
InsertItem(int, ItemIndex)
Occurs when an item index is inserted into the collection.
protected override void InsertItem(int index, ItemIndex item)
Parameters
Sort()
Sorts the values in the collection.
public void Sort()