Intersoft ClientUI Documentation
DisplayMask Property
See Also  Send Feedback
Intersoft.Client.UI.Aqua.UXInput Namespace > UXNumericUpDown Class : DisplayMask Property






Gets or sets the display mask pattern.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property DisplayMask As String
Visual Basic (Usage)Copy Code
Dim instance As UXNumericUpDown
Dim value As String
 
instance.DisplayMask = value
 
value = instance.DisplayMask
C# 
[CategoryAttribute("Common Properties")]
public string DisplayMask {get; set;}
Delphi 
public read-write property DisplayMask: String; 
JScript 
CategoryAttribute("Common Properties")
public function get,set DisplayMask : String
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property string* get_DisplayMask();
public: __property void set_DisplayMask( 
   string* value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property String^ DisplayMask {
   String^ get();
   void set (    String^ value);
}

Remarks

The UXNumericUpDown accept standard and custom .NET numeric format in the EditMask and DisplayMask. Some of the format is not parsed in EditMask because it is only used as a display format.

Standard Format

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

Currently UXNumericUpDown standard format will not accept custom group sizes. The group sizes will always be 3.

Custom Format

Valid EditMask Format Specifier Description
V 0 Zero placeholder
Replaces the zero with the corresponding digit if one is present; otherwise, zero appears in the result string.
V # Digit placeholder
Replaces the pound sign with the corresponding digit if one is present; otherwise, no digit appears in the result string.
V . Decimal point
Determines the location of the decimal separator in the result string.
V , 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.
V % Percentage placeholder
Multiplies a number by 100 and inserts a localized percentage symbol in the result string.
X 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.
V \ Escape character
Causes the next character to be interpreted as a literal rather than as a custom format specifier.
V 'string', "string" Literal string delimiter
Indicates that the enclosed characters should be copied to the result string unchanged.
V ; Section separator
Defines sections with separate format strings for positive, negative, and zero numbers.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.