Skip to main content
All docs
V24.1

DxTextFormatSettings Class

Contains the element’s format settings.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public class DxTextFormatSettings :
    DxSettingsComponent<TextFormatSettingsModel>

Remarks

Use DxTextFormatSettings objects to customize format settings for the following components:

DxBarGaugeLabelSettings
Contains settings for Bar Gauge labels.
DxBarGaugeLegendSettings
Contains settings for the Bar Gauge‘s legend.
DxTooltipSettings
Contains tooltip settings.

The following properties are available:

Type | LdmlString
Apply predefined or custom formatting to the element’s text.
Currency | UseCurrencyAccountingStyle
Apply specific settings to the element’s text of the Currency format type.
Precision
Specifies precision for values of numeric or Currency format types.

Example

The following code snippet configures DxBarGauge labels as follows:

Bar Gauge - Currency Format Type

<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 };
}

Inheritance

Object
ComponentBase
DxSettingsComponent<DevExpress.Blazor.ClientComponents.Internal.TextFormatSettingsModel>
DxTextFormatSettings
See Also