In This Article

UIElementCollectionConverter Class

Provides a TypeConverter to convert UIElementCollection objects to and from other representations.

public class UIElementCollectionConverter : TypeConverter
Inheritance:
object TypeConverter object

Constructors

UIElementCollectionConverter()

Initializes an instance of the class.

public UIElementCollectionConverter()

Methods

CanConvertTo(ITypeDescriptorContext, Type)

Returns whether this converter can convert the object to the specified type, using the specified context.

public override bool CanConvertTo(ITypeDescriptorContext context, Type destType)
Parameter Type Description
context ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

destType Type

A Type that represents the type you want to convert to.

Returns

bool:

true if this converter can perform the conversion; otherwise, false.

ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)

Converts the given value object to the specified type, using the specified context and culture information.

public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destType)
Parameter Type Description
context ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

culture CultureInfo

A CultureInfo object. If null is passed, the current culture is assumed.

value object

The Object to convert.

destType Type

The Type to convert the value parameter to.

Returns

object:

An Object that represents the converted value.

Inherited Members