[]
Represents a converter that converts a decimal value to a string based on the pattern.
[Localizability(LocalizationCategory.NeverLocalize)]
public class NumberFormatConverter : IValueConverter, INotifyPropertyChanged
<Localizability(LocalizationCategory.NeverLocalize)>
Public Class NumberFormatConverter
Implements IValueConverter, INotifyPropertyChanged
NumberFormatConverter is used to convert a given text to another string in a binding process based on specified format. If the text is valid to the GrapeCity.Windows.InputMan.NumberFormatConverter.Digit property, it returns a translated string back; otherwise, it returns error string.
| Name | Description |
|---|---|
| NumberFormatConverter() | Initialize a new instance of NumberFormatConverter. |
| Name | Description |
|---|---|
| Digit | Gets or sets the format for NumberFormatConverter. |
| ErrorString | Gets or sets the string to return when converted object is not suited to format. |
| NegativePrefix | Gets or sets the negative prefix for NumberFormatConverter. |
| NegativeSuffix | Gets or sets the negative suffix for GrapeCity.Windows.InputMan.NumberFormatConverter. |
| NullString | Gets or sets the string to return when converted object is String.Empty or null. |
| PositivePrefix | Gets or sets the positive prefix for NumberFormatConverter. |
| PositiveSuffix | Gets or sets the positive suffix for NumberFormatConverter. |
| ZeroString | Gets or sets the string to return when converted object is zero. |
| Name | Description |
|---|---|
| Convert(object, Type, object, CultureInfo) | Converts a value to a special string based on digit. |
| ConvertBack(object, Type, object, CultureInfo) | Modifies the target data before passing it to the source object. This method is called only in TwoWay bindings. |