[]
        
(Showing Draft Content)

C1.Win.TreeView.Util.ImageListConverter.ConvertTo

ConvertTo Method

ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)

Converts the given value object to the reference type using the specified context and arguments.

Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
Type Name Description
ITypeDescriptorContext context

An ITypeDescriptorContext that provides a format context.

CultureInfo culture

A CultureInfo that specifies the culture used to represent the font.

object value

The object to convert.

Type destinationType

The type to convert the object to.

Returns
Type Description
object

The converted object.

Overrides
Exceptions
Type Condition
ArgumentNullException

destinationType is null.

NotSupportedException

The conversion cannot be performed.