ISchedulerMappingConverter Interface
In This Article
Enables you to apply custom logic to a mapping.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.Core.dll
NuGet Package: DevExpress.Scheduler.Core
#Declaration
#Related API Members
The following members return ISchedulerMappingConverter objects:
Show 33 links
#Remarks
You can associate a mapping converter with a mapping. Create a class that implements the ISchedulerMappingConverter interface, instantiate it and assign it to a related property as described in the Mapping Converters document.
#Example
Note
A complete sample project is available at https://github.
class MappingConverterStart : ISchedulerMappingConverter {
public object Convert(object obj, Type targetType, object parameter) {
return DateTime.ParseExact(obj.ToString(), "s", System.Globalization.DateTimeFormatInfo.InvariantInfo);
}
public object ConvertBack(object obj, Type targetType, object parameter) {
return ((DateTime)obj).ToString("s");
}
}
See Also