ComponentConverter Class

Definition

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

public class ComponentConverter : System.ComponentModel.ReferenceConverter
Inheritance

Inherited Members

System.ComponentModel.ReferenceConverter

System.ComponentModel.TypeConverter

System.Object

Remarks

This class implements GetPropertiesSupported and GetProperties by returning the properties through the GetProperties method of TypeDescriptor.

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

Note

You should never create an instance of ComponentConverter. Instead, call the GetConverter 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.

Constructors

ComponentConverter(Type)

Initializes a new instance of the ComponentConverter class.

Methods

GetProperties(ITypeDescriptorContext, Object, Attribute[])

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

GetPropertiesSupported(ITypeDescriptorContext)

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