March 2003
Intermediate to advanced
896 pages
32h 35m
English
ICustomTypeDescriptor
Classes implement this interface to provide dynamic type information
about themselves. Contrast this with the
TypeDescriptor, which provides static type
information.
It provides an interface very similar to the
TypeDescriptor signature, with members to access
attributes, properties, events, and the GetConverter( ) method to get a custom TypeConverter
for the class.
public interface ICustomTypeDescriptor { // Public Instance Methods public AttributeCollection GetAttributes(); public string GetClassName(); public string GetComponentName(); public TypeConverter GetConverter(); public EventDescriptor GetDefaultEvent(); public PropertyDescriptor GetDefaultProperty(); public object GetEditor(Type editorBaseType); public EventDescriptorCollection GetEvents(); public EventDescriptorCollection GetEvents(Attribute[] attributes); public PropertyDescriptorCollection GetProperties(); public PropertyDescriptorCollection GetProperties(Attribute[] attributes); public object GetPropertyOwner(PropertyDescriptor pd); }
System.Windows.Forms.AxHost
Read now
Unlock full access