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






Gets or sets the edit mask pattern.

Syntax

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

Remarks

The UXCurrencyEditor accept standard and custom .NET numeric format in the EditMask. By default EditMask is c2.

Standard Format

Format Specifier Description
C, c Currency
A currency value.
D, d Decimal
Integer digits with optional negative sign.
F, f Fixed-point
Integral and decimal digits with optional negative sign.
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.

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

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.
\ 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 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.