TextFormat Enum
Lists text formats.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
#Declaration
public enum TextFormat
#Members
Name | Description |
---|---|
Billions
|
Formats numbers as billions. |
Currency
|
Adds a currency symbol to numbers. |
Day
|
Displays days. |
Decimal
|
Formats numbers as decimals. |
Exponential
|
Displays numbers in exponential notation. |
Fixed
|
Displays numbers with a fixed point. |
Large
|
Uses the |
Long
|
Displays a date in |
Long
|
Displays a time value in |
Millions
|
Formats numbers as millions. |
Millisecond
|
Displays milliseconds. |
Month
|
Displays months. |
Month
|
Displays a date in |
Month
|
Displays a date in |
Percent
|
Formats numbers as percentages. |
Quarter
|
Displays a quarter of the year. |
Quarter
|
Displays a quarter and year. |
Short
|
Displays a date in |
Short
|
Displays a time value in |
Thousands
|
Formats numbers as thousands. |
Trillions
|
Formats numbers as trillions. |
Year
|
Displays years. |
Day
|
Displays week days. |
Hour
|
Displays hours. |
Long
|
Displays a date-time value in |
Minute
|
Displays minutes. |
Second
|
Displays seconds. |
Short
|
Displays a date-time value in |
Default
|
Values are displayed as is (without a formatting pattern). |
#Related API Members
The following properties accept/return TextFormat values:
#Remarks
The following code snippet sets the format type of DxBarGauge labels to Currency
:
<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 };
}