blazor-devexpress-dot-blazor-ba25a730.md
Contains the element’s format settings.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public class DxTextFormatSettings :
DxSettingsComponent<TextFormatSettingsModel>
Use DxTextFormatSettings objects to customize format settings for the following components:
The following properties are available:
Type | LdmlStringApply predefined or custom formatting to the element’s text.Currency | UseCurrencyAccountingStyleApply specific settings to the element’s text of the Currency format type.PrecisionSpecifies precision for values of numeric or Currency format types.
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 };
}
Object ComponentBase DxSettingsComponent<DevExpress.Blazor.ClientComponents.Internal.TextFormatSettingsModel> DxTextFormatSettings
See Also