blazor-devexpress-dot-blazor-dot-dxtextformatsettings-6a9ec357.md
Specifies a 3-letter ISO 4217 currency code. Applies if the Type property is set to Currency.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public string Currency { get; set; }
| Type | Description |
|---|---|
| String |
The 3-letter currency code.
|
The following code snippet configures DxBarGauge labels as follows:
Currency.GBP currency code to the Currency property.<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