CustomTypeDescriptor
Class
Definition
Provides a simple default implementation of the ICustomTypeDescriptor interface.
public abstract class CustomTypeDescriptor : System.ComponentModel.ICustomTypeDescriptor
- Inheritance
-
CustomTypeDescriptor
- Derived
- Implements
Inherited Members
System.Object
Remarks
Like TypeDescriptionProvider, the CustomTypeDescriptor class relies on a parent object of type ICustomTypeDescriptor supplied during construction. This allows classes that derive from CustomTypeDescriptor to selectively override methods.
Constructors
| CustomTypeDescriptor() |
Initializes a new instance of the CustomTypeDescriptor class. |
| CustomTypeDescriptor(ICustomTypeDescriptor) |
Initializes a new instance of the CustomTypeDescriptor class using a parent custom type descriptor. |
Methods
| GetAttributes() |
Returns a collection of custom attributes for the type represented by this type descriptor. |
| GetClassName() |
Returns the fully qualified name of the class represented by this type descriptor. |
| GetComponentName() |
Returns the name of the class represented by this type descriptor. |
| GetConverter() |
Returns a type converter for the type represented by this type descriptor. |
| GetDefaultEvent() |
Returns the event descriptor for the default event of the object represented by this type descriptor. |
| GetDefaultProperty() |
Returns the property descriptor for the default property of the object represented by this type descriptor. |
| GetEditor(Type) |
Returns an editor of the specified type that is to be associated with the class represented by this type descriptor. |
| GetEvents() |
Returns a collection of event descriptors for the object represented by this type descriptor. |
| GetEvents(Attribute[]) |
Returns a filtered collection of event descriptors for the object represented by this type descriptor. |
| GetProperties() |
Returns a collection of property descriptors for the object represented by this type descriptor. |
| GetProperties(Attribute[]) |
Returns a filtered collection of property descriptors for the object represented by this type descriptor. |
| GetPropertyOwner(PropertyDescriptor) |
Returns an object that contains the property described by the specified property descriptor. |