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 |
destType | Type | A |
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 |
culture | CultureInfo | A |
value | object | The |
destType | Type | The |
Returns
- object:
An
Object
that represents the converted value.