Sets the X value of the data point with the specified index.

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Sub SetXValue ( _
	index As Integer, _
	newValue As Double _
)
C#
public void SetXValue (
	int index,
	double newValue
)
C++
public:
void SetXValue (
	int index, 
	double newValue
)

Parameters

index (System.Int32)
A zero-based index.
newValue (System.Double)
A real number.

Remarks

This method lets you set the X-value of the data point with index index. The new X-value must be such that the X values remain in ascending order. Otherwise, an ArgumentException is thrown.

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionindex is less than zero or greater than NumberOfIntervals.
ArgumentException Setting the value to would cause the X values to no longer be in ascending order.

See Also