Back to Devexpress

IndicatorCollection.Add(Indicator) Method

corelibraries-devexpress-dot-xtracharts-dot-indicatorcollection-dot-add-x28-devexpress-dot-xtracharts-dot-indicator-x29.md

latest2.6 KB
Original Source

IndicatorCollection.Add(Indicator) Method

Appends the specified indicator to the current collection.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public int Add(
    Indicator indicator
)
vb
Public Function Add(
    indicator As Indicator
) As Integer

Parameters

NameTypeDescription
indicatorIndicator

An Indicator class descendant to append to the collection.

|

Returns

TypeDescription
Int32

An integer value indicating the position at which the new element was inserted.

|

Remarks

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

csharp
// Add the trendline to the series collection of indicators.
myView.Indicators.Add(trendline1);

winforms-chart-add-a-trend-line/VB/Form1.vb#L45

vb
' Add the trendline to the series collection of indicators.
myView.Indicators.Add(trendline1)
' Add the chart to the form.

See Also

IndicatorCollection Class

IndicatorCollection Members

DevExpress.XtraCharts Namespace