Class CurveKeyCollection
Contains the CurveKeys making up a Curve.
Inheritance
Namespace: VRageMath
Assembly: VRage.Math.dll
Syntax
public class CurveKeyCollection : Object, ICollection<CurveKey>, IEnumerable<CurveKey>, IEnumerable
Constructors
CurveKeyCollection()
Declaration
public CurveKeyCollection()
Properties
Count
Gets the number of elements contained in the CurveKeyCollection.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System. |
IsReadOnly
Returns a value indicating whether the CurveKeyCollection is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System. |
Item[Int32]
Gets or sets the element at the specified index.
Declaration
public CurveKey this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System. |
index | The array index of the element. |
Property Value
Type | Description |
---|---|
Curve |
Methods
Add(Object)
Declaration
public void Add(object tmp)
Parameters
Type | Name | Description |
---|---|---|
System. |
tmp |
Add(CurveKey)
Adds a CurveKey to the CurveKeyCollection.
Declaration
public void Add(CurveKey item)
Parameters
Type | Name | Description |
---|---|---|
Curve |
item | The CurveKey to add. |
Clear()
Removes all CurveKeys from the CurveKeyCollection.
Declaration
public void Clear()
Clone()
Creates a copy of the CurveKeyCollection.
Declaration
public CurveKeyCollection Clone()
Returns
Type | Description |
---|---|
Curve |
Contains(CurveKey)
Determines whether the CurveKeyCollection contains a specific CurveKey.
Declaration
public bool Contains(CurveKey item)
Parameters
Type | Name | Description |
---|---|---|
Curve |
item | true if the CurveKey is found in the CurveKeyCollection; false otherwise. |
Returns
Type | Description |
---|---|
System. |
CopyTo(CurveKey[], Int32)
Copies the CurveKeys of the CurveKeyCollection to an array, starting at the array index provided.
Declaration
public void CopyTo(CurveKey[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
Curve |
array | The destination of the CurveKeys copied from CurveKeyCollection. The array must have zero-based indexing. |
System. |
arrayIndex | The zero-based index in the array to start copying from. |
GetEnumerator()
Returns an enumerator that iterates through the CurveKeyCollection.
Declaration
public IEnumerator<CurveKey> GetEnumerator()
Returns
Type | Description |
---|---|
System. |
IndexOf(CurveKey)
Determines the index of a CurveKey in the CurveKeyCollection.
Declaration
public int IndexOf(CurveKey item)
Parameters
Type | Name | Description |
---|---|---|
Curve |
item | CurveKey to locate in the CurveKeyCollection. |
Returns
Type | Description |
---|---|
System. |
Remove(CurveKey)
Removes the first occurrence of a specific CurveKey from the CurveKeyCollection.
Declaration
public bool Remove(CurveKey item)
Parameters
Type | Name | Description |
---|---|---|
Curve |
item | The CurveKey to remove from the CurveKeyCollection. |
Returns
Type | Description |
---|---|
System. |
RemoveAt(Int32)
Removes the CurveKey at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System. |
index | The zero-based index of the item to remove. |