Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    DxTextFormatSettings Class

    Contains the element’s format settings.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    #Declaration

    C#
    public class DxTextFormatSettings :
        DxSettingsComponent<TextFormatSettingsModel>

    #Remarks

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

    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

    Razor
    <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