blazor-devexpress-dot-blazor-dot-dxtextformatsettings-327a9062.md
Specifies precision for values of numeric or Currency format types.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(0)]
[Parameter]
public int Precision { get; set; }
| Type | Default | Description |
|---|---|---|
| Int32 | 0 |
The number of integer digits (for the Decimal format type) or the number of decimal places in formatted values.
|
The following code snippet configures DxBarGauge labels as follows:
Currency.GBP currency code to the Currency property.precision.<DxBarGauge Width="100%"
Height="500px"
StartValue="-5"
EndValue="5"
BaseValue="0"
Values="@Values">
<DxBarGaugeLabelSettings>
<DxTextFormatSettings Type="TextFormat.Currency"
Currency="GBP"
Precision="2"
UseCurrencyAccountingStyle="false"/>
</DxBarGaugeLabelSettings>
</DxBarGauge>
@code {
double[] Values = new double[] { -2.13, 1.48, -3.09, 4.52, 4.9, 3.9 };
}
See Also