IToolboxService.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // System.Drawing.Design.IToolboxService.cs
  2. //
  3. // Author:
  4. // Alejandro Sánchez Acosta <[email protected]>
  5. //
  6. // (C) Alejandro Sánchez Acosta
  7. //
  8. using System.Collections;
  9. using System.Runtime.InteropServices;
  10. namespace System.Drawing.Design
  11. {
  12. //[Guid("")]
  13. [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
  14. public interface IToolboxService
  15. {
  16. CategoryNameCollection CategoryNames {get;}
  17. string SelectedCategory {get; set;}
  18. void AddCreator (ToolboxItemCreatorCallback creator, string format);
  19. void AddCreator (ToolboxItemCreatorCallback creator, string format, IDesignerHost host);
  20. void AddLinkedToolboxItem (ToolboxItem toolboxItem, IDesignerHost host);
  21. void AddLinkedToolboxItem (ToolboxItem toolboxItem, string category, IDesignerHost host);
  22. ToolboxItem DeserializeToolboxItem (object serializedObject);
  23. ToolboxItem DeserializeToolboxItem (object serializedObject, IDesignerHost host);
  24. ToolboxItem GetSelectedToolboxItem ();
  25. ToolboxItem GetSelectedToolboxItem (IDesignerHost host);
  26. bool IsSupported (object serializedObject, ICollection filterAttributes);
  27. bool IsSupported (object serializedObject, IDesignerHost host);
  28. bool IsToolboxItem (object serializedObject);
  29. bool IsToolboxItem (object serializedObject, IDesignerHost host);
  30. void Refresh();
  31. void RemoveCreator (string format);
  32. void RemoveCreator (string format, IDesignerHost host);
  33. void RemoveToolboxItem (ToolboxItem toolboxItem);
  34. void RemoveToolboxItem (ToolboxItem toolboxItem, string category);
  35. void SelectedToolboxItemUsed ();
  36. object SerializeToolboxItem (ToolboxItem toolboxItem);
  37. bool SetCursor ();
  38. void SetSelectedToolboxItem (ToolboxItem toolboxItem);
  39. }
  40. }