[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.DateFormatConverter

DateFormatConverter Class

Represents a converter that converts a date time convertible value to a string based on the pattern.

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

DateFormatConverter 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.DateFormatConverter.Pattern property, it returns a translated string back; otherwise, it returns error string.

Constructors

Name Description
DateFormatConverter()

Initializes a new instance of DateFormatConverter.

Properties

Name Description
EmptyEraString

Gets or sets the string which is filling char and show empty era time by Gregorian format when pattern has era keyword.

ErrorString

Gets or sets the string is not suited to pattern.

NullString

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

Pattern

Gets or sets the format for DateFormatConverter.

Methods

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

Converts a given value to another string based on specified 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.