IComNativeDescriptorHandler.cs 1007 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // System.ComponentModel.IComNativeDescriptorHandler.cs
  3. //
  4. // Author:
  5. // Andreas Nahr ([email protected])
  6. //
  7. // (C) 2003 Andreas Nahr
  8. //
  9. using System;
  10. namespace System.ComponentModel
  11. {
  12. public interface IComNativeDescriptorHandler
  13. {
  14. AttributeCollection GetAttributes(object component);
  15. string GetClassName(object component);
  16. TypeConverter GetConverter(object component);
  17. EventDescriptor GetDefaultEvent(object component);
  18. PropertyDescriptor GetDefaultProperty(object component);
  19. object GetEditor(object component, Type baseEditorType);
  20. EventDescriptorCollection GetEvents(object component);
  21. EventDescriptorCollection GetEvents(object component, Attribute[] attributes);
  22. string GetName(object component);
  23. PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes);
  24. object GetPropertyValue(object component, int dispid, ref bool success);
  25. object GetPropertyValue(object component, string propertyName, ref bool success);
  26. }
  27. }