[]
        
(Showing Draft Content)

C1.Win.Calendar.DateTimeRangeConverter.ConvertTo

ConvertTo Method

ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)

Converts the specified DateTimeRange to another representation.

Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Public Overrides Function ConvertTo(context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object
Parameters
Type Name Description
ITypeDescriptorContext context

The type descriptor context.

CultureInfo culture

The culture information used for formatting dates.

object value

The DateTimeRange to convert.

Type destinationType

The target type of the conversion.

Returns
Type Description
object

A string representation of the DateTimeRange in the expected format, or an empty string if the value is null.

Overrides
Exceptions
Type Condition
NotSupportedException

Thrown when the conversion to destinationType is not supported.