ICustomTypeDescriptor

ICustomTypeDescriptor

System.ComponentModel (system.dll) interface

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  ); } 

Implemented By

System.Windows.Forms.AxHost



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net