# FunctionBase Collection Editor

## Content



The **FunctionBase Collection Editor** is used for adding or modifying functions for plotting data at design time. For more information on using the functions for plotting data, see [Plotting Functions](/componentone/docs/win/online-chart2d/chartingdata/plottingfunctions).

### To Access the FunctionBase Collection Editor

1.  Right-click the **C1Chart** control and select **Properties** from its context menu.
2.  Expand the **ChartGroups** node in the Properties window.
3.  Expand the **Group0** node and then expand the **ChartData** node.
4.  Select the **FunctionsList** property and click the **ellipsis** button. The **FunctionBase Collection Editor** appears.

**Base parts of the FunctionBase Collection Editor**

The following figure illustrates the elements in the **FunctionBase Collection Editor**:

![](https://cdn.mescius.io/document-site-files/images/70bd33a2-280e-4cc3-a1c0-7b827eceb8aa/imagesext/image9_14.png)

The following properties are available for the user in the **FunctionBase Collection Editor** at design time or they can be used in the FunctionBase class at run time:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

Available Properties in the FunctionBase Collection Editor

DOC-SUMMARY-TAG-CLOSE

The code properties specify the type and language of the function's code as well as the multi-line presentation for the code. The code properties and their descriptions are listed below:

| **Members** | **Description** |
| --- | --- |
| [CodeErrors](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.FunctionBase.CodeErrors.html) | Gets the string descriptions of any compiler errors. |
| [CodeLanguage](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.FunctionBase.CodeLanguage.html) | Gets or sets the programming language used for compiling VB or C#. The user can specify which language by clicking on the drop-down button in the Code Language textbox and selecting the language. |
| CodeLines | Gets or sets the multi-line presentation of the function code. By clicking the ellipsis button you can enter code into the listbox of the collection string editor. |
| [CodeType](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.FunctionBase.CodeType.html) | Gets or sets whether the code will be compiled as a formula, method, or as a full compile unit. |
| [CodeValid](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.FunctionBase.CodeValid.html) | Gets whether the function compiles correctly. |

**Misc Properties of the FunctionBase Collection Editor**:

The miscellaneous property and their functions are listed below:

| **Members** | **Description** |
| --- | --- |
| [Label](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.FunctionBase.Label.html) | Gets or sets the label of the function. |
| [LegendEntry](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.FunctionBase.LegendEntry.html) | Gets or sets whether the function will be shown in the legend. |

**Plot Properties of the FunctionBase Collection Editor**:

The plot properties are used to modify the style or functionality of the chart data series plots used in your function. The plot properties and their descriptions are listed below:

| **Members** | **Description** |
| --- | --- |
| [AutoMax](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.AutoMax.html) | Gets or sets whether the maximum X value is calculated automatically. |
| [AutoMin](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.Axis.AutoMin.html) | Gets or sets whether the minimum X value is calculated automatically. |
| [LineStyle](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.FunctionBase.LineStyle.html) | Gets or sets the line style used for plotting the function. |
| [MaxX](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartData.MaxX.html) | Gets or sets the maximum X value of the plotted function. |
| [MinX](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.ChartData.MinX.html) | Gets or sets the minimum X value of the plotted function. |
| [PlotLinesMethod](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.FunctionBase.PlotLinesMethod.html) | Gets or sets the method used for plotting the function. |
| [PlotNumPoints](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.FunctionBase.PlotNumPoints.html) | Gets or sets the number of points used when plotting the function. |
| [PlotOverData](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.FunctionBase.PlotOverData.html) | Gets or sets whether the function is plotted over or behind the data series plots. |
| [Visible](/componentone/api/win/online-chart2d/dotnet-framework-api/C1.Win.C1Chart.4.8/C1.Win.C1Chart.FunctionBase.Visible.html) | Gets or sets whether the function plot is visible. |

DOC-DETAILS-TAG-CLOSE

## See Also

[Label Collection Editor](/componentone/docs/win/online-chart2d/designtimesupport/c1chartcollectionedi/labelcollectionedito)