Invokes a custom function that calculates the values for the chart.
Namespace: MindFusion.Charting.WinForms
Assembly: MindFusion.Charting.WinForms
C#
![]() |
---|
public CalculateFunctionDelegate CalculateFunction { get; set; } |
Visual Basic
![]() |
---|
Public Property CalculateFunction As CalculateFunctionDelegate |
An instance of type MindFusion.Charting.CalculateFunctionDelegate.
The delegate enables custom functions to be computed and drawn rather than settings numbers with XData and YData. The delegate's function argument specifies the numerical interval, in which the function is computed. To raise the CalculateFunction event, provide a method that calculates the value of a float argument and returns float result. Then, assign the method to an instance of the CalculateFunctionDelegate delegate.
The following example:
C#
![]() |
---|
/// <summary> |