NumericOptions.Precision Property

Gets or sets the maximum number of digits displayed to the right of the decimal point.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v20.1.dll

Declaration

public int Precision { get; set; }
Public Property Precision As Integer

Property Value

Type Description
Int32

An integer value that specifies the maximum number of digits displayed in the fractional part of the value.

Property Paths

You can access this nested property as listed below:

Object Type Path to Precision
PointOptions
.ValueNumericOptions.Precision
PointOptions

Remarks

Use the Precision property to specify the maximum number of digits displayed to the right of a value's decimal point, when the NumericOptions.Format property is not set to the NumericFormat.General value.

Examples

This example demonstrates how to customize the PointOptions.ValueNumericOptions and PercentOptions properties.

<dxc:AreaFullStackedSeries2D.PointOptions>
    <dxc:PointOptions>
        <dxc:PointOptions.ValueNumericOptions>
            <dxc:NumericOptions Format="Percent" Precision="2" />
        </dxc:PointOptions.ValueNumericOptions>
        <dxc:AreaFullStackedSeries2D.PercentOptions>
            <dxc:PercentOptions PercentageAccuracy="3" />
        </dxc:AreaFullStackedSeries2D.PercentOptions>
    </dxc:PointOptions>
</dxc:AreaFullStackedSeries2D.PointOptions>

Implements

DevExpress.Charts.Native.INumericOptions.Precision
See Also