FittingModelConfigurator SetCurveExpression Method TIBCO Spotfire 6.0 API Reference
Sets the curve expression.

Namespace: Spotfire.Dxp.Application.Visuals.FittingModels
Assembly: Spotfire.Dxp.Application (in Spotfire.Dxp.Application.dll) Version: 13.19.7018.3940 (13.19.7018.3940)
Syntax

public void SetCurveExpression(
	ReferenceCurve curve,
	string expression
)

Parameters

curve
Type: Spotfire.Dxp.Application.Visuals.FittingModels ReferenceCurve
The curve.
expression
Type: System String
The expression defining the curve.
Exceptions

ExceptionCondition
System ArgumentNullException Thrown if the curve is null.
System ArgumentNullException Thrown if the expression is null.
System ArgumentException Thrown if the curve and this FittingModelConfigurator belong to different FittingModel instances.
Examples

The following example shows how to set the curve expression.
FittingModelConfigurator configurator;
configurator.SetCurveExpression(curve, "5.0 * sin([X]) + 2.5");
See Also