System.ComponentModel.ComponentConverter Class

Provides a type converter to convert components to and from various other representations.

See Also: ComponentConverter


public class ComponentConverter : ReferenceConverter


This class implements TypeConverter.GetPropertiesSupported and erload:System.ComponentModel.ComponentConverter.GetProperties by returning the properties through the TypeDescriptor.GetProperties(Type) method of TypeDescriptor.

For more information about type converters, see the TypeConverter base class and How to: Implement a Type Converter.


You should never create an instance of ComponentConverter. Instead, call the TypeDescriptor.GetConverter(Object) method of TypeDescriptor. For more information, see the examples in the TypeConverter base class.

This converter converts an object that implements IComponent and displays its properties in the Properties window.


Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,,

The members of System.ComponentModel.ComponentConverter are listed below.

See Also: ReferenceConverter

Public Constructors

Initializes a new instance of the ComponentConverter class.

Public Methods

GetProperties(ITypeDescriptorContext, Object, Attribute[]) : PropertyDescriptorCollection

Gets a collection of properties for the type of component specified by the value parameter.

GetPropertiesSupported(ITypeDescriptorContext) : Boolean

Gets a value indicating whether this object supports properties using the specified context.