Back to Devexpress

ReductionStockOptions.ColorMode Property

corelibraries-devexpress-dot-xtracharts-dot-reductionstockoptions.md

latest4.6 KB
Original Source

ReductionStockOptions.ColorMode Property

Gets or sets the mode used to color the financial series points.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public ReductionColorMode ColorMode { get; set; }
vb
Public Property ColorMode As ReductionColorMode

Property Value

TypeDescription
ReductionColorMode

The specified color mode.

|

Available values:

NameDescription
PreviousToCurrentPoint

Points are colorized with the color specified by the ReductionStockOptions.Color property if the value of the previous point is greater than the value of the current point (the value is decreased). The StockPointOptions.ValueLevel property specifies the point value that should be compared.

| | OpenToCloseValue |

Points are colorized with a color defined by the ReductionStockOptions.Color property if the point open value is greater than the point close value (the price is decreased).

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ColorMode
FinancialDrawOptions

.ReductionOptions .ColorMode

| | FinancialSeriesViewBase |

.ReductionOptions .ColorMode

|

Remarks

To specify this property, use the ReductionColorMode enumeration values. The following table lists all the possible values of the ColorMode property.

ValueDescriptionImage
ReductionColorMode.OpenToCloseValuePoints are colorized with a color defined by the ReductionStockOptions.Color property if the point open value is greater than the point close value (the price is decreased).
ReductionColorMode.PreviousToCurrentPointPoints are colorized with the color specified by the ReductionStockOptions.Color property if the value of the previous point is greater than the value of the current point (the value is decreased). The StockPointOptions.ValueLevel property specifies the point value that should be compared.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ColorMode 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-create-candlestick-chart/VB/CandleStickChart/Form1.vb#L33

vb
' Specify the series reduction options.
view.ReductionOptions.ColorMode = ReductionColorMode.OpenToCloseValue
view.ReductionOptions.FillMode = CandleStickFillMode.AlwaysEmpty

See Also

ReductionStockOptions Class

ReductionStockOptions Members

DevExpress.XtraCharts Namespace