Method MoveDataPoint
MoveDataPoint(int, float)
Move a DataPoint<TDataType> (if it exists) from this collection, from one index to the another.
Declaration
public int MoveDataPoint(int index, float newIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The index of the DataPoint<TDataType> to move. This is the index into the collection, not the PathIndexUnit.Knot. |
| float | newIndex | The new index (Knot) for this DataPoint<TDataType>. |
Returns
| Type | Description |
|---|---|
| int | The index of the modified DataPoint<TDataType>. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException |