Skip to main content

AppointmentMappingInfo.EndConverter Property

Gets or sets a value converter for the Appointment.End property.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v23.2.Core.dll

NuGet Package: DevExpress.Scheduler.Core

Declaration

[Browsable(false)]
public ISchedulerMappingConverter EndConverter { get; set; }

Property Value

Type Description
ISchedulerMappingConverter

An object that implements the ISchedulerMappingConverter interface to translate the data between the property and the data source field.

Example

class MappingConverterEnd : 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) {
        string s = ((DateTime)obj).ToString("s");
        return s;
    }
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EndConverter property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also