Back to Devexpress

DxTextFormatSettings Class

blazor-devexpress-dot-blazor-ba25a730.md

latest3.7 KB
Original Source

DxTextFormatSettings Class

Contains the element’s format settings.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public class DxTextFormatSettings :
    DxSettingsComponent<TextFormatSettingsModel>

Remarks

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.

Example

The following code snippet configures DxBarGauge labels as follows:

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

Implements

IComponent

IHandleEvent

IHandleAfterRender

IDisposable

Inheritance

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

See Also

DxTextFormatSettings Members

DevExpress.Blazor Namespace