Class UnitCollection
A collection of unit objects.
Inherited Members
System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
Namespace: ABB.Robotics.Controllers.IOSystemDomain
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public class UnitCollection : EnumerableTCollectionBase<Unit>, IList, ICollection, IEnumerable<Unit>, IEnumerable
Constructors
UnitCollection()
Initializes a new instance of the UnitCollection class.
Declaration
public UnitCollection()
Properties
Item[Int32]
Gets the Unit at the specified index.
Declaration
public Unit this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Property Value
Type | Description |
---|---|
Unit | Unit object. |
Methods
Add(Unit)
Adds the specified value.
Declaration
public int Add(Unit value)
Parameters
Type | Name | Description |
---|---|---|
Unit | value | The value. |
Returns
Type | Description |
---|---|
Int32 | Index of value. |
Contains(Unit)
Determines whether the collection contains the specified value.
Declaration
public bool Contains(Unit value)
Parameters
Type | Name | Description |
---|---|---|
Unit | value | The value. |
Returns
Type | Description |
---|---|
Boolean |
|
IndexOf(Unit)
Gets the index of the unit.
Declaration
public int IndexOf(Unit value)
Parameters
Type | Name | Description |
---|---|---|
Unit | value | The value. |
Returns
Type | Description |
---|---|
Int32 | Index of unit if exists; otherwise -1. |
Insert(Int32, Unit)
Inserts the unit at specified index.
Declaration
public void Insert(int index, Unit value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index. |
Unit | value | The unit. |