Back to Devexpress

Indicator.Color Property

corelibraries-devexpress-dot-xtracharts-dot-indicator-283401f2.md

latest2.8 KB
Original Source

Indicator.Color Property

Specifies the indicator‘s color.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public Color Color { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property Color As Color

Property Value

TypeDescription
Color

A Color structure, specifying the color of the indicator.

|

Remarks

Use the Color and Indicator.LineStyle properties, to define an indicator’s appearance.

For more information, see Indicators.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Color property.

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#L41

csharp
trendline1.ExtrapolateToInfinity = false;
trendline1.Color = Color.Red;
trendline1.LineStyle.DashStyle = DashStyle.Dash;

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

vb
trendline1.ExtrapolateToInfinity = False
trendline1.Color = Color.Red
trendline1.LineStyle.DashStyle = DashStyle.Dash

See Also

LineStyle

Indicators

Indicator Class

Indicator Members

DevExpress.XtraCharts Namespace