[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.MaskFormatConverter

MaskFormatConverter Class

Represent the converter used to convert text with special format.

Inheritance
MaskFormatConverter
Namespace: GrapeCity.Wpf.SpreadSheet.CellType.Editors
Assembly: GrapeCity.Wpf.SpreadSheet.CellType.dll
Syntax
[Localizability(LocalizationCategory.NeverLocalize)]
public class MaskFormatConverter : IValueConverter, INotifyPropertyChanged
<Localizability(LocalizationCategory.NeverLocalize)>
Public Class MaskFormatConverter
    Implements IValueConverter, INotifyPropertyChanged
Remarks

MaskFormatConverter is used to convert a given text to another string in a binding process based on the specified format. If the text is valid to the GrapeCity.Windows.InputMan.MaskFormatConverter.Pattern property, it returns a translated string back; otherwise, it returns error string.

Constructors

Name Description
MaskFormatConverter()

Initialize a new instance of MaskFormatConverter.

Properties

Name Description
ErrorString

Gets or sets the string to return when converted object doesn't meet the pattern.

NullString

Gets or sets the string to return when converted object is String.Empty or null.

Pattern

Gets or sets the format for MaskFormatConverter.

Methods

Name Description
Convert(object, Type, object, CultureInfo)

Converts a value to a special string based on different pattern.

ConvertBack(object, Type, object, CultureInfo)

Modifies the target data before passing it to the source object. This method is called only in TwoWay bindings.