[]
        
(Showing Draft Content)

C1.Win.C1Chart.ParametricFunction

ParametricFunction Class

Represents a function defined by a pair of equations, x(t) = f1(t) and y(t) = f2(t), where t is an independent variable.

Inheritance
ParametricFunction
Implements
Namespace: C1.Win.C1Chart
Assembly: C1.Win.C1Chart.4.8.dll
Syntax
public class ParametricFunction : FunctionBase, IDisposable, ICloneable

Constructors

Name Description
ParametricFunction()

Initializes a new instance of the ParametricFunction class. This constructor is equivalent to ParametricFunction(true).

ParametricFunction(bool)

Initializes a new instance of the ParametricFunction class.

Specifies whether the ParametricFunction object should be created in a way that allows the compiled functions (in-memory assemblies) be unloaded. When the Disposable parameter is true, an in-memory assembly is created another AppDomain which is unloaded from the application when the ParametricFunction object goes out of scope. If the Disposable parameter is false, then the in-memory created assemblies cannot be unloaded until the application is terminated. Note that an AppDomain is used only if the current permission set allows. Web applications always create function assemblies in the current AppDomain.

Properties

Name Description
CodeLinesX

Gets or sets the multi-line presentation of the function code for the x value calculation.

CodeLinesY

Gets or sets the multi-line presentation of the function code for the y value calculation.

CodeTextX

Gets or sets the function code for the x value calculation.

CodeTextY

Gets or sets the function code for the y value calculation.

CodeValid

Gets whether the function compiles correctly.

CustomFunctionX

Gets or sets a custom function object for the x value calculation.

CustomFunctionY

Gets or sets the custom function object for the y value calculation.

Max

Gets or sets the maximum value of the axis.

MaxT

Gets or sets the maximum parameter value when plotting the function.

Min

Gets or sets the minimum value of the axis.

MinT

Gets or sets the minimum parameter value when plotting the function.

Methods

Name Description
GetPoints(bool)

Gets the calulated Y points of chart.

GetX(double)

Calculates the x value of function at specified parameter t.

GetXValues(double[])

Calculates the x values of the function at specified t values.

GetY(double)

Calculates the y value of function at specified parameter t.

GetYValues(double[])

Calculates the y values of the function at specified t values.

Recompile()

The code will be compiled as formula, a method or as full compile unit.

Events

Name Description
CalculateX

Fires when the x value is calculated.

CalculateY

Fires when the y value is calculated.