Class AttributeCollection
Summary description for AttributeCollection.
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.ConfigurationDomain
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public class AttributeCollection : EnumerableTCollectionBase<Attribute>, IList, ICollection, IEnumerable<Attribute>, IEnumerable
Constructors
AttributeCollection()
Declaration
public AttributeCollection()
Properties
Item[Int32]
Gets or sets the Attribute at the specified index.
Declaration
public Attribute this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
Int32 | index |
Property Value
Type | Description |
---|---|
Attribute | Value to set. |
Item[String]
Gets the Attribute with the specified name.
Declaration
public Attribute this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
String | name |
Property Value
Type | Description |
---|---|
Attribute | The Value. |
Methods
Add(Attribute)
Adds the specified value.
Declaration
public int Add(Attribute value)
Parameters
Type | Name | Description |
---|---|---|
Attribute | value | The value. |
Returns
Type | Description |
---|---|
Int32 | The inserted index. |
Contains(Attribute)
Determines if the collection contains the specified value.
Declaration
public bool Contains(Attribute value)
Parameters
Type | Name | Description |
---|---|---|
Attribute | value | The value. |
Returns
Type | Description |
---|---|
Boolean |
|
IndexOf(Attribute)
Gets the index of the value.
Declaration
public int IndexOf(Attribute value)
Parameters
Type | Name | Description |
---|---|---|
Attribute | value | The value. |
Returns
Type | Description |
---|---|
Int32 | The index, otherwise -1. |
IndexOf(String)
Returns the index of the name.
Declaration
public int IndexOf(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name. |
Returns
Type | Description |
---|---|
Int32 | Index of the name, otherwise -1. |
Insert(Int32, Attribute)
Inserts a value at the specified index.
Declaration
public void Insert(int index, Attribute value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index. |
Attribute | value | The value. |
Remove(Attribute)
Removes the specified value.
Declaration
public void Remove(Attribute value)
Parameters
Type | Name | Description |
---|---|---|
Attribute | value | The value. |