IDesignerHost.cs 964 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // System.Drawing.Design.IDesignerHost.cs
  2. //
  3. // Author:
  4. // Alejandro Sánchez Acosta <[email protected]>
  5. //
  6. // (C) Alejandro Sánchez Acosta
  7. //
  8. using System.ComponentModel;
  9. using System.ComponentModel.Design;
  10. using System.Runtime.InteropServices;
  11. namespace System.Drawing.Design
  12. {
  13. [ComVisible(true)]
  14. public interface IDesignerHost : IServiceContainer, IServiceProvider
  15. {
  16. IContainer Container {get;}
  17. bool InTransaction {get;}
  18. bool Loading {get;}
  19. IComponent RootComponent {get;}
  20. string RootComponentClassName {get;}
  21. string TransactionDescription {get;}
  22. void Activate();
  23. IComponent CreateComponent (Type componentClass);
  24. IComponent CreateComponent (Type componentClass, string name);
  25. DesignerTransaction CreateTransaction ();
  26. DesignerTransaction CreateTransaction (string description);
  27. void DestroyComponent (IComponent component);
  28. IDesigner GetDesigner (IComponent component);
  29. Type GetType (string typeName);
  30. }
  31. }