Intersoft ClientUI Documentation
DisplayMask Property (UXCurrencyEditor)



Gets or sets the display mask pattern.
Syntax
<CategoryAttribute("Common Properties")>
Public Property DisplayMask As String
Dim instance As UXCurrencyEditor
Dim value As String
 
instance.DisplayMask = value
 
value = instance.DisplayMask
[CategoryAttribute("Common Properties")]
public string DisplayMask {get; set;}
[CategoryAttribute("Common Properties")]
public:
property String^ DisplayMask {
   String^ get();
   void set (    String^ value);
}
Remarks

The UXCurrencyEditor accept standard and custom .NET numeric format in the DisplayMask.

Standard Format

Format Specifier Description
C, c Currency
A currency value.
D, d Decimal
Integer digits with optional negative sign.
E, e Exponential (scientific)
Exponential notation.
F, f Fixed-point
Integral and decimal digits with optional negative sign.
G, g General
The most compact of either fixed-point or scientific notation.
N, n Number
Integral and decimal digits, group separators, and a decimal separator with optional negative sign.
P, p Percent
Number multiplied by 100 and displayed with a percent symbol.
R, r Round-trip
A string that can round-trip to an identical number.
X, x Hexadecimal
A hexadecimal string.

Custom Format

Format Specifier Description
0 Zero placeholder
Replaces the zero with the corresponding digit if one is present; otherwise, zero appears in the result string.
# Digit placeholder
Replaces the pound sign with the corresponding digit if one is present; otherwise, no digit appears in the result string.
. Decimal point
Determines the location of the decimal separator in the result string.
, Group separator and number scaling
Replaces the pound sign with the corresponding digit if one is present; otherwise, no digit appears in the result string.
% Percentage placeholder
Multiplies a number by 100 and inserts a localized percentage symbol in the result string.
E0, E+0, E-0, e0, e+0, e-0 Exponential notation
If followed by at least one 0 (zero), formats the result using exponential notation. The case of "E" or "e" indicates the case of the exponent symbol in the result string. The number of zeros following the "E" or "e" character determines the minimum number of digits in the exponent. A plus sign (+) indicates that a sign character always precedes the exponent. A minus sign (-) indicates that a sign character precedes only negative exponents.
\ Escape character
Causes the next character to be interpreted as a literal rather than as a custom format specifier.
'string', "string" Literal string delimiter
Indicates that the enclosed characters should be copied to the result string unchanged.
; Section separator
Defines sections with separate format strings for positive, negative, and zero numbers.

Requirements

Target Platforms: 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

See Also

Reference

UXCurrencyEditor Class
UXCurrencyEditor Members

Send Feedback