[]
        
(Showing Draft Content)

C1.Win.C1Chart.YFunction

YFunction Class

The Yfunction class is used to describe simple functions defined explicitly by equations of the form y(x) = f(x).

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

Constructors

Name Description
YFunction()

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

YFunction(bool)

Initializes a new instance of the YFunction class.

Specifies whether the YFunction 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 YFunction 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
AutoMax

Gets or sets whether the maximum X value is calculated automatically.

AutoMin

Gets or sets whether the minimum X value is calculated automatically.

CodeText

Gets or sets the function code.

CustomFunction

Gets or sets a user-defined custom function object.

MaxX

Gets or sets the maximum X value of the plotted function.

MinX

Gets or sets the minimum X value of the plotted function.

Methods

Name Description
GetPoints(bool)

Gets the calulated Y points of chart.

GetY(double)

Calculates the value of the function at specified X value.

GetYValues(double[])

Calculates the values of the function at specified X values.

Recompile()

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

Events

Name Description
CalculateY

Fires whenever the function value is calculated.