'Declaration
Public Property FormatString As String
'Usage
Dim instance As NumericUpDown(Of T) Dim value As String instance.FormatString = value value = instance.FormatString
public string FormatString {get; set;}
'Declaration
Public Property FormatString As String
'Usage
Dim instance As NumericUpDown(Of T) Dim value As String instance.FormatString = value value = instance.FormatString
public string FormatString {get; set;}
Standard numeric formats can be used, like C2 for currency with 2 decimal places, N for numbers, P for percent, etc. A reference for said formats can be found at the following link: https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings
The default value is string.Empty.
The following code would display this control:
<xctk:LongUpDown Value="12125" FormatString="C2" BorderBrush="Black" BorderThickness="2" CornerRadius="8" HorizontalOptions="Center"/>
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2