Back to Devexpress

ReductionStockOptions.ColorMode Property

wpf-devexpress-dot-xpf-dot-charts-dot-reductionstockoptions-71ae54d0.md

latest4.0 KB
Original Source

ReductionStockOptions.ColorMode Property

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

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.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 color specified by the ReductionStockOptions.Brush property if a value of previous point is greater than the value of the current point (the value is decreased). The ReductionStockOptions.Level property specifies the point value that should be compared.

| | OpenToCloseValue |

Points are colorized with a color defined by the ReductionStockOptions.Brush 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
FinancialSeries2D

.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.Brush property if the point open value is greater than the point close value (the price is decreased).
ReductionColorMode.PreviousToCurrentPointPoints are colorized with color specified by the ReductionStockOptions.Brush property if a value of previous point is greater than the value of the current point (the value is decreased). The ReductionStockOptions.Level property specifies the point value that should be compared.

Example

The following example demonstrates how to specify the Candle Stick chart’s fill mode and color mode.

xaml
<dxc:CandleStickSeries2D.ReductionOptions>
    <dxc:ReductionStockOptions ColorMode="OpenToCloseValue" 
                               dxc:CandleStickSeries2D.FillMode="FilledOnReduction"/>
</dxc:CandleStickSeries2D.ReductionOptions>

See Also

ReductionStockOptions Class

ReductionStockOptions Members

DevExpress.Xpf.Charts Namespace