corelibraries-devexpress-dot-xtracharts-dot-indicator-283401f2.md
Specifies the indicator‘s color.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public Color Color { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property Color As Color
| Type | Description |
|---|---|
| Color |
A Color structure, specifying the color of the indicator.
|
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
trendline1.ExtrapolateToInfinity = false;
trendline1.Color = Color.Red;
trendline1.LineStyle.DashStyle = DashStyle.Dash;
winforms-chart-add-a-trend-line/VB/Form1.vb#L38
trendline1.ExtrapolateToInfinity = False
trendline1.Color = Color.Red
trendline1.LineStyle.DashStyle = DashStyle.Dash
See Also