Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​ComponentModel.​CustomTypeDescriptor
Assembly: System.ComponentModel.TypeConverter
Inheritance: object → CustomTypeDescriptor
Implemented Interfaces
Provides a simple default implementation of the <see cref="T:System.ComponentModel.ICustomTypeDescriptor" /> interface.
Properties
public
bool?
RequireRegisteredTypes
Gets a value that indicates whether types are required to be registered through <see cref="M:System.ComponentModel.TypeDescriptionProvider.RegisterType``1" /> .
Methods
public
AttributeCollection
GetAttributes​()
Returns a collection of custom attributes for the type represented by this type descriptor.
Returns An <see cref="T:System.ComponentModel.AttributeCollection" /> containing the attributes for the type. The default is <see cref="F:System.ComponentModel.AttributeCollection.Empty" /> .
public
string
GetClassName​()
Returns the fully qualified name of the class represented by this type descriptor.
Returns A <see cref="T:System.String" /> containing the fully qualified class name of the type this type descriptor is describing. The default is <see langword="null" /> .
public
string
GetComponentName​()
Returns the name of the class represented by this type descriptor.
Returns A <see cref="T:System.String" /> containing the name of the component instance this type descriptor is describing. The default is <see langword="null" /> .
public
TypeConverter
GetConverter​()
Returns a type converter for the type represented by this type descriptor.
Returns A <see cref="T:System.ComponentModel.TypeConverter" /> for the type represented by this type descriptor. The default is a newly created <see cref="T:System.ComponentModel.TypeConverter" /> .
public
TypeConverter
GetConverterFromRegisteredType​()
<para>Returns a type converter for the type this type</para> <para>descriptor is representing.</para>
Returns A <see cref="T:System.ComponentModel.TypeConverter" /> for the type represented by this type descriptor.
public
EventDescriptor
GetDefaultEvent​()
Returns the event descriptor for the default event of the object represented by this type descriptor.
Returns The <see cref="T:System.ComponentModel.EventDescriptor" /> for the default event on the object represented by this type descriptor. The default is <see langword="null" /> .
public
PropertyDescriptor
GetDefaultProperty​()
Returns the property descriptor for the default property of the object represented by this type descriptor.
Returns A <see cref="T:System.ComponentModel.PropertyDescriptor" /> for the default property on the object represented by this type descriptor. The default is <see langword="null" /> .
public
object
GetEditor​(Type editorBaseType)
Returns an editor of the specified type that is to be associated with the class represented by this type descriptor.
Returns An editor of the given type that is to be associated with the class represented by this type descriptor. The default is <see langword="null" /> .
editorBaseType
The base type of the editor to retrieve.
public
EventDescriptorCollection
GetEvents​()
Returns a collection of event descriptors for the object represented by this type descriptor.
Returns An <see cref="T:System.ComponentModel.EventDescriptorCollection" /> containing the event descriptors for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.EventDescriptorCollection.Empty" /> .
public
EventDescriptorCollection
GetEventsFromRegisteredType​()
<para>Returns a collection of event descriptors</para> <para>for the object this type descriptor is representing.</para>
Returns An <see cref="T:System.ComponentModel.EventDescriptorCollection" /> containing the event descriptors for the object represented by this type descriptor.
public
EventDescriptorCollection
GetEvents​(Attribute[] attributes)
Returns a filtered collection of event descriptors for the object represented by this type descriptor.
Returns An <see cref="T:System.ComponentModel.EventDescriptorCollection" /> containing the event descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.EventDescriptorCollection.Empty" /> .
attributes
An array of attributes to use as a filter. This can be <see langword="null" /> .
public
PropertyDescriptorCollection
GetProperties​()
Returns a collection of property descriptors for the object represented by this type descriptor.
Returns A <see cref="T:System.ComponentModel.PropertyDescriptorCollection" /> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty" /> .
public
PropertyDescriptorCollection
GetPropertiesFromRegisteredType​()
<para>Returns a collection of property descriptors</para> <para>for the object this type descriptor is representing.</para>
Returns A <see cref="T:System.ComponentModel.PropertyDescriptorCollection" /> containing the property descriptions for the object represented by this type descriptor.
public
PropertyDescriptorCollection
GetProperties​(Attribute[] attributes)
Returns a filtered collection of property descriptors for the object represented by this type descriptor.
Returns A <see cref="T:System.ComponentModel.PropertyDescriptorCollection" /> containing the property descriptions for the object represented by this type descriptor. The default is <see cref="F:System.ComponentModel.PropertyDescriptorCollection.Empty" /> .
attributes
An array of attributes to use as a filter. This can be <see langword="null" /> .
public
object
GetPropertyOwner​(PropertyDescriptor pd)
Returns an object that contains the property described by the specified property descriptor.
Returns An <see cref="T:System.Object" /> that owns the given property specified by the type descriptor. The default is <see langword="null" /> .
pd
The property descriptor for which to retrieve the owning object.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object