Sets the X value of the data point with the specified index.
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics)
Version: 2.1.7017.0
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub SetDataPoint ( _ index As Integer, _ newValue As Point _ ) |
| C# |
|---|
public void SetDataPoint ( int index, Point newValue ) |
| Visual C++ |
|---|
public: void SetDataPoint ( int index, Point newValue ) |
Parameters
- index
- System.Int32
A zero-based index.
- newValue
- Extreme.Mathematics.Curves.Point
A Point structure.
Remarks
This method lets you set both the X-value and the Y-value of a data point at the same time.
The new X-value must be such that the X values remain in ascending order. Otherwise, an
ArgumentException is thrown.
Exceptions
| Exception | Condition |
|---|---|
| System.ArgumentOutOfRangeException | index is less than zero or greater than NumberOfIntervals.
|
| System.ArgumentException |
Setting the value to would cause the X values to no longer be in ascending order.
|