FittingModelConfiguratorSetCurveExpression Method TIBCO Spotfire 7.6 API Reference
Sets the curve expression.

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

C#
public void SetCurveExpression(
	ReferenceCurve curve,
	string expression
)

Parameters

curve
Type: Spotfire.Dxp.Application.Visuals.FittingModelsReferenceCurve
The curve.
expression
Type: SystemString
The expression defining the curve.
Exceptions

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

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

Supported in: 7.6, 7.5, 7.0, 6.5, 6.0, 5.5, 5.0
See Also

Reference