corelibraries-devexpress-dot-xtracharts-dot-indicatorcollection-dot-add-x28-devexpress-dot-xtracharts-dot-indicator-x29.md
Appends the specified indicator to the current collection.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
public int Add(
Indicator indicator
)
Public Function Add(
indicator As Indicator
) As Integer
| Name | Type | Description |
|---|---|---|
| indicator | Indicator |
An Indicator class descendant to append to the collection.
|
| Type | Description |
|---|---|
| Int32 |
An integer value indicating the position at which the new element was inserted.
|
This method adds an indicator object to the end of the collection.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add(Indicator) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-chart-add-a-trend-line/CS/Form1.cs#L51
// Add the trendline to the series collection of indicators.
myView.Indicators.Add(trendline1);
winforms-chart-add-a-trend-line/VB/Form1.vb#L45
' Add the trendline to the series collection of indicators.
myView.Indicators.Add(trendline1)
' Add the chart to the form.
See Also