Redigeeri

Jagamisviis:


CustomTypeDescriptor Class

Definition

Provides a simple default implementation of the ICustomTypeDescriptor interface.

public ref class CustomTypeDescriptor abstract : System::ComponentModel::ICustomTypeDescriptor
public abstract class CustomTypeDescriptor : System.ComponentModel.ICustomTypeDescriptor
type CustomTypeDescriptor = class
    interface ICustomTypeDescriptor
Public MustInherit Class CustomTypeDescriptor
Implements ICustomTypeDescriptor
Inheritance
CustomTypeDescriptor
Derived
Implements

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.

Properties

RequireRegisteredTypes

Gets a value that indicates whether types are required to be registered through RegisterType<T>().

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
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.

GetConverterFromRegisteredType()

Returns a type converter for the type this type

descriptor is representing.

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.

GetEventsFromRegisteredType()

Returns a collection of event descriptors

for the object this type descriptor is representing.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
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.

GetPropertiesFromRegisteredType()

Returns a collection of property descriptors

for the object this type descriptor is representing.

GetPropertyOwner(PropertyDescriptor)

Returns an object that contains the property described by the specified property descriptor.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also